diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx index 9b86002a1f..237ba84668 100644 --- a/web/apps/photos/src/pages/gallery.tsx +++ b/web/apps/photos/src/pages/gallery.tsx @@ -190,7 +190,6 @@ export default function Gallery() { const [favItemIds, setFavItemIds] = useState>(); const [isFirstLoad, setIsFirstLoad] = useState(false); - const [isFirstFetch, setIsFirstFetch] = useState(false); const [selected, setSelected] = useState({ ownCount: 0, count: 0, @@ -366,7 +365,6 @@ export default function Gallery() { setupSelectAllKeyBoardShortcutHandler(); setActiveCollectionID(ALL_SECTION); setIsFirstLoad(isFirstLogin()); - setIsFirstFetch(true); if (justSignedUp()) { setPlanModalView(true); } @@ -394,7 +392,6 @@ export default function Gallery() { await syncWithRemote(true); setIsFirstLoad(false); setJustSignedUp(false); - setIsFirstFetch(false); syncInterval.current = setInterval(() => { syncWithRemote(false, true); }, SYNC_INTERVAL_IN_MICROSECONDS); @@ -1091,7 +1088,6 @@ export default function Gallery() { ) : ( (map1: Map, map2: Map) => { interface NormalNavbarContentsProps { openSidebar: () => void; - isFirstFetch: boolean; openUploader: () => void; isInSearchMode: boolean; setIsInSearchMode: (v: boolean) => void;