This commit is contained in:
Claire Chabas
2025-01-10 19:58:28 +01:00
parent 4df83559f7
commit 063b05b1e1
@@ -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) {