fix search count by updating it when filteredData changes

This commit is contained in:
Abhinav 2022-01-13 10:39:14 +05:30
parent e3ee397774
commit f42f6447d3

View file

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