[UI] Prevent duplicate search queries (#13024)

Prevent search query from re-firing and cancelling previous query
This commit is contained in:
Oliver authored and GitHub committed 2026-10-16 22:14:25 +11:00
1 parent c74523dcff
commit ad0828a8fe
1 file changed
-5
@@ -396,11 +396,6 @@ export function SearchDrawer({
return searchQueryList.filter((q) => q.enabled);
}, [searchQueryList]);
// Re-fetch data whenever the search term is updated
useEffect(() => {
searchQuery.refetch();
}, [searchText]);
// Function for performing the actual search query
const performSearch = async ({ signal }: { signal: AbortSignal }) => {
// Return empty result set if no search text, or too short to be worth searching on