diff --git a/frontend/src/features/gallery/ImageGallery.tsx b/frontend/src/features/gallery/ImageGallery.tsx index a8a305f154..373bb5852c 100644 --- a/frontend/src/features/gallery/ImageGallery.tsx +++ b/frontend/src/features/gallery/ImageGallery.tsx @@ -123,10 +123,8 @@ export default function ImageGallery() { galleryContainerRef.current ? galleryContainerRef.current.scrollTop : 0 ) ); - if (!shouldHoldGalleryOpen) { - dispatch(setShouldHoldGalleryOpen(false)); - } dispatch(setShouldShowGallery(false)); + dispatch(setShouldHoldGalleryOpen(false)); }; const handleClickLoadMore = () => { @@ -254,7 +252,7 @@ export default function ImageGallery() { return (