diff --git a/app/gallery/page.tsx b/app/gallery/page.tsx index 0839a88..b8e8387 100644 --- a/app/gallery/page.tsx +++ b/app/gallery/page.tsx @@ -121,7 +121,7 @@ function PageComponent() {
{galleries && galleries.map((gallery, index) => ( { getData(); - }, []); + }, [galleryId]); return (
@@ -44,6 +44,7 @@ const GalleryThumbnail = ({ id, columns, onSelect, title, subscription }: Galler src={thumbnailUrl} alt="" onClick={openGallery} + key={galleryId} style={{ width: '20rem', height: '20rem', objectFit: 'cover' }} />