Fix refetch on search change
This commit is contained in:
parent
2e8d033614
commit
ad3cfb01ce
1 changed files with 2 additions and 3 deletions
|
@ -198,9 +198,8 @@ export const AlbumListHeader = ({ gridRef }: AlbumListHeaderProps) => {
|
|||
);
|
||||
|
||||
const handleSearch = debounce((e: ChangeEvent<HTMLInputElement>) => {
|
||||
setFilter({
|
||||
searchTerm: e.target.value,
|
||||
});
|
||||
const updatedFilters = setFilter({ searchTerm: e.target.value });
|
||||
handleFilterChange(updatedFilters);
|
||||
}, 500);
|
||||
|
||||
return (
|
||||
|
|
Reference in a new issue