mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Fix refetch on search change
This commit is contained in:
@@ -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 New Issue
Block a user