diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx index c40b6e1ae..26d1036e5 100644 --- a/src/pages/gallery/index.tsx +++ b/src/pages/gallery/index.tsx @@ -146,9 +146,9 @@ export default function Gallery(props) { if (updatedCollections.length > 0) { setCollections(collections); setData(data); - setCollectionLatestFile(collectionLatestFile); - setFavItemIds(favItemIds); } + setCollectionLatestFile(collectionLatestFile); + setFavItemIds(favItemIds); setProgress(100); }; main(); @@ -325,7 +325,7 @@ export default function Gallery(props) { showUploadModal={props.showUploadModal} collectionLatestFile={collectionLatestFile} refetchData={() => setReload(Math.random())} - + /> {filteredData.length ? (