Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skip redundant

Manav Rathi63a9ef9455d0
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index fc32b99276..132a7754a3 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -829,12 +829,12 @@ const Page: React.FC = () => {
collectionSummaryID: number | undefined,
isHiddenCollectionSummary: boolean | undefined,
) => {
- if (isHiddenCollectionSummary) {
+ if (isHiddenCollectionSummary && barMode != "hidden-albums") {
await authenticateUser();
}
handleShowCollectionSummaryWithID(collectionSummaryID);
},
- [authenticateUser, handleShowCollectionSummaryWithID],
+ [authenticateUser, handleShowCollectionSummaryWithID, barMode],
);
const handleSidebarShowCollectionSummary = showCollectionSummary;
diff --git a/web/packages/gallery/components/utils/save-groups.ts b/web/packages/gallery/components/utils/save-groups.ts
index 5dcfd8aa7d..ace1c98b8b 100644
--- a/web/packages/gallery/components/utils/save-groups.ts
+++ b/web/packages/gallery/components/utils/save-groups.ts
@@ -71,8 +71,6 @@ export interface SaveGroup {
canceller: AbortController;
}
-export const isSaveStarted = (group: SaveGroup) => group.total > 0;
-
/**
* Return `true` if there are no files in this save group that are pending.
*/