Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename

Manav Rathi149196e7dd4e
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 0956a25690..afe799e483 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1103,7 +1103,7 @@ const Page: React.FC = () => {
activePersonID={activePerson?.id}
enableDownload={true}
fileToCollectionsMap={state.fileCollectionIDs}
- collectionNameMap={state.allCollectionNameByID}
+ collectionNameMap={state.allCollectionsNameByID}
showAppDownloadBanner={
files.length < 30 && !isInSearchMode
}
@@ -1119,7 +1119,7 @@ const Page: React.FC = () => {
)}
<Export
{...exportVisibilityProps}
- collectionNameMap={state.allCollectionNameByID}
+ collectionNameMap={state.allCollectionsNameByID}
/>
<AuthenticateUserModal
open={authenticateUserModalView}
diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.ts
index 8c4f9c3b27..174297859e 100644
--- a/web/packages/new/photos/components/gallery/reducer.ts
+++ b/web/packages/new/photos/components/gallery/reducer.ts
@@ -200,7 +200,7 @@ export interface GalleryState {
* This map will contain entries for all (both normal and hidden)
* collections.
*/
- allCollectionNameByID: Map<number, string>;
+ allCollectionsNameByID: Map<number, string>;
/**
* A list of collection IDs to which a file belongs, indexed by file ID.
*/
@@ -420,7 +420,7 @@ const initialGalleryState: GalleryState = {
hiddenFileIDs: new Set(),
archivedFileIDs: new Set(),
favoriteFileIDs: new Set(),
- allCollectionNameByID: new Map(),
+ allCollectionsNameByID: new Map(),
fileCollectionIDs: new Map(),
collectionSummaries: new Map(),
hiddenCollectionSummaries: new Map(),
@@ -481,7 +481,7 @@ const galleryReducer: React.Reducer<GalleryState, GalleryAction> = (
action.files,
state.unsyncedFavoriteUpdates,
),
- allCollectionNameByID: createCollectionNameByID(
+ allCollectionsNameByID: createCollectionNameByID(
action.allCollections,
),
fileCollectionIDs: createFileCollectionIDs(action.files),
@@ -539,7 +539,7 @@ const galleryReducer: React.Reducer<GalleryState, GalleryAction> = (
state.files,
state.unsyncedFavoriteUpdates,
),
- allCollectionNameByID: createCollectionNameByID(
+ allCollectionsNameByID: createCollectionNameByID(
collections.concat(state.hiddenCollections),
),
collectionSummaries,
@@ -608,7 +608,7 @@ const galleryReducer: React.Reducer<GalleryState, GalleryAction> = (
state.files,
state.unsyncedFavoriteUpdates,
),
- allCollectionNameByID: createCollectionNameByID(
+ allCollectionsNameByID: createCollectionNameByID(
collections.concat(hiddenCollections),
),
collectionSummaries,