Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Fix trash open

Manav Rathi1b8a8a271767
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 35fcb89986..d164791595 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -521,7 +521,7 @@ const CollectionOptions: React.FC<CollectionHeaderProps> = ({
title={t("rename_album")}
label={t("album_name")}
autoFocus
- initialValue={activeCollection.name}
+ initialValue={activeCollection?.name}
submitButtonTitle={t("rename")}
onSubmit={renameCollection}
/>