Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathiee2f03adca7b
diff --git a/web/apps/photos/src/components/Upload.tsx b/web/apps/photos/src/components/Upload.tsx
index b266a9e8f0..44cb1cf277 100644
--- a/web/apps/photos/src/components/Upload.tsx
+++ b/web/apps/photos/src/components/Upload.tsx
@@ -103,8 +103,11 @@ interface UploadProps {
onUploadFile: (file: EnteFile) => void;
/**
* Called when the plan selection modal should be shown.
+ *
+ * It is optional because {@link Upload} is also used by the public albums
+ * app, where the scenario requiring this will not arise.
*/
- onShowPlanSelector: () => void;
+ onShowPlanSelector?: () => void;
setCollections?: (cs: Collection[]) => void;
isFirstUpload?: boolean;
uploadTypeSelectorView: boolean;