From 84645495a9328bab138bd61483833415ae13e7c7 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Fri, 7 Jul 2023 15:25:28 -0400 Subject: [PATCH] load images for whichever tab youre on --- .../src/features/gallery/components/ImageGalleryContent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx index a5fc653913..0050b6e170 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx @@ -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));