diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/data-table/data-table-grobal-filter.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/data-table/data-table-grobal-filter.tsx b/components/data-table/data-table-grobal-filter.tsx index ca60bf02..fa0c809c 100644 --- a/components/data-table/data-table-grobal-filter.tsx +++ b/components/data-table/data-table-grobal-filter.tsx @@ -24,7 +24,7 @@ export function DataTableGlobalFilter() { // Debounced callback that sets the URL param after `delay` ms const debouncedSetSearch = useDebouncedCallback((value: string) => { - if (value !== searchValue) setSearchValue(value.trim() === "" ? undefined : value); + if (value !== searchValue) setSearchValue(value.trim() === "" ? null : value); }, 300) // When user types, update local `tempValue` immediately, |
