fix(ui): fix search input clear (#1969)
This commit is contained in:
parent
8c41e6cda8
commit
ba4e8a474f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue