Merge pull request #295 from ente-io/fix-search-count

fix search count by updating it when filteredData changes
This commit is contained in:
Abhinav Kumar 2022-01-13 11:14:58 +05:30 committed by GitHub
commit 44b2907c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ const PhotoFrame = ({
onThumbnailClick(filteredDataIdx)();
}
}
}, [search]);
}, [search, filteredData]);
const resetFetching = () => {
setFetching({});