diff --git a/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx b/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx index 1590fa79b..4fbcdb971 100644 --- a/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx +++ b/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx @@ -88,8 +88,8 @@ const AiSearchField = observer(({ edit }: Props) => { const debounceAiFetch = React.useCallback(debounce(aiFiltersStore.getSearchFilters, 1000), []); const onSearchChange = ({ target: { value } }: any) => { + setSearchQuery(value); if (value !== '' && value !== searchQuery) { - setSearchQuery(value); debounceAiFetch(value); } };