fix search count by updating it when filteredData changes
This commit is contained in:
parent
e3ee397774
commit
f42f6447d3
|
@ -134,7 +134,7 @@ const PhotoFrame = ({
|
||||||
onThumbnailClick(filteredDataIdx)();
|
onThumbnailClick(filteredDataIdx)();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [search]);
|
}, [search, filteredData]);
|
||||||
|
|
||||||
const resetFetching = () => {
|
const resetFetching = () => {
|
||||||
setFetching({});
|
setFetching({});
|
||||||
|
|
Loading…
Reference in a new issue