load images for whichever tab youre on

This commit is contained in:
Mary Hipp 2023-07-07 15:25:28 -04:00 committed by psychedelicious
parent 6399055f7f
commit 84645495a9

View File

@ -185,11 +185,12 @@ const ImageGalleryContent = () => {
useEffect(() => {
dispatch(
receivedPageOfImages({
categories: ['general'],
categories,
is_intermediate: false,
})
);
}, [dispatch]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleClickImagesCategory = useCallback(() => {
dispatch(imageCategoriesChanged(IMAGE_CATEGORIES));