diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx index 5c08d0ad6..723761a0d 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx @@ -119,7 +119,6 @@ const DocumentsTabComponent: React.FunctionComponent<{ applyFilterButtonPressed: boolean; }>(undefined); const [queryAbortController, setQueryAbortController] = useState(undefined); - const [isQueryCopilotSampleContainer, setIsQueryCopilotSampleContainer] = useState(false); // TODO: Make this a constant is setter getting called const [cancelQueryTimeoutID, setCancelQueryTimeoutID] = useState(undefined); const [isExecutionError, setIsExecutionError] = useState(false); // TODO: Where is this used? @@ -139,6 +138,11 @@ const DocumentsTabComponent: React.FunctionComponent<{ ViewModels.DocumentExplorerState.noDocumentSelected, ); + const isQueryCopilotSampleContainer = + props.collection?.isSampleCollection && + props.collection?.databaseId === QueryCopilotSampleDatabaseId && + props.collection?.id() === QueryCopilotSampleContainerId; + // For Mongo only const [continuationToken, setContinuationToken] = useState(undefined);