diff --git a/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx b/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx index d67526da2..283b2c811 100644 --- a/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx +++ b/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx @@ -105,10 +105,6 @@ const AiSearchField = observer( appliedFilter && appliedFilter.filters && appliedFilter.filters.size > 0; const { aiFiltersStore } = useStore(); const [searchQuery, setSearchQuery] = useState(''); - const debounceAiFetch = React.useCallback( - debounce(aiFiltersStore.getSearchFilters, 1000), - [] - ); const onSearchChange = ({ target: { value } }: any) => { setSearchQuery(value); @@ -116,7 +112,7 @@ const AiSearchField = observer( const fetchResults = () => { if (searchQuery) { - debounceAiFetch(searchQuery); + void aiFiltersStore.getSearchFilters(searchQuery); } };