diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx index 65192944b..4c2b33487 100644 --- a/src/pages/gallery/index.tsx +++ b/src/pages/gallery/index.tsx @@ -221,9 +221,7 @@ export default function Gallery() { useState(null); const syncInProgress = useRef(true); const resync = useRef(false); - const [deletedFileIds, setDeletedFileIds] = useState>( - new Set() - ); + const [deletedFileIds, setDeletedFileIds] = useState(new Set()); const { startLoading, finishLoading, setDialogMessage, ...appContext } = useContext(AppContext); const [collectionSummaries, setCollectionSummaries] = @@ -551,6 +549,7 @@ export default function Gallery() { }); } finally { await syncWithRemote(false, true); + setDeletedFileIds(new Set()); finishLoading(); } };