From 6af5a0ee5d7abf0d60777bffab4f53439935d8c4 Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Sun, 26 May 2024 22:09:05 -0400 Subject: [PATCH] fix: icons not updating on search --- app/gallery/page.tsx | 2 +- components/ui/gallery_thumbnail.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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' }} />