From 063b05b1e1c8b4a1e68f768ec9478b3fedeb7ff6 Mon Sep 17 00:00:00 2001 From: Claire Chabas Date: Fri, 10 Jan 2025 19:58:28 +0100 Subject: [PATCH] testing --- packages/gitbook/src/components/Search/SearchResults.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/gitbook/src/components/Search/SearchResults.tsx b/packages/gitbook/src/components/Search/SearchResults.tsx index 83bde7d81..259ac17fb 100644 --- a/packages/gitbook/src/components/Search/SearchResults.tsx +++ b/packages/gitbook/src/components/Search/SearchResults.tsx @@ -111,8 +111,7 @@ export const SearchResults = React.forwardRef(function SearchResults( cancelled = true; }; } else { - console.log('CLAIRE', window.location) - setResultsState((prev) => ({ results: prev.results, fetching: true })); + // setResultsState((prev) => ({ results: prev.results, fetching: true })); let cancelled = false; const timeout = setTimeout(async () => { const results = await (global @@ -147,8 +146,7 @@ export const SearchResults = React.forwardRef(function SearchResults( clearTimeout(timeout); }; } - }, [query, global, pointer, spaceId, revisionId, withAsk, trackEvent]); - // }, [query, global, pointer, spaceId, revisionId, withAsk, trackEvent, getCtx]); + }, [query, global, pointer, spaceId, revisionId, withAsk, trackEvent, getCtx]); const results: ResultType[] = React.useMemo(() => { if (!withAsk) {