diff --git a/frontend/src/Editor/Components/Table/GlobalFilter.jsx b/frontend/src/Editor/Components/Table/GlobalFilter.jsx index ddea66fd2a..91676163b2 100644 --- a/frontend/src/Editor/Components/Table/GlobalFilter.jsx +++ b/frontend/src/Editor/Components/Table/GlobalFilter.jsx @@ -10,17 +10,12 @@ export const GlobalFilter = ({ }) => { const [value, setValue] = React.useState(globalFilter); const onChange = useAsyncDebounce((filterValue) => { + setValue(filterValue); setGlobalFilter(filterValue || undefined); - }, 200); - - const handleSearchTextChange = (text) => { - setValue(text); - onChange(text); - - onComponentOptionChanged(component, 'searchText', text).then(() => { + onComponentOptionChanged(component, 'searchText', filterValue).then(() => { onEvent('onSearch', { component, data: {} }); }); - }; + }, 500); return (