π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix unhandled error on upload cancellation
Abhinav39cfc15494e8
diff --git a/apps/photos/src/components/Upload/Uploader.tsx b/apps/photos/src/components/Upload/Uploader.tsxindex f40c2f91b7..37bf6ccc23 100644--- a/apps/photos/src/components/Upload/Uploader.tsx+++ b/apps/photos/src/components/Upload/Uploader.tsx@@ -398,7 +398,7 @@ export default function Uploader(props: Props) {localID: index,collectionID: collection.id,}));- waitInQueueAndUploadFiles(+ await waitInQueueAndUploadFiles(filesWithCollectionToUpload,[collection],uploaderName@@ -472,14 +472,17 @@ export default function Uploader(props: Props) {});throw e;}- waitInQueueAndUploadFiles(filesWithCollectionToUpload, collections);+ await waitInQueueAndUploadFiles(+ filesWithCollectionToUpload,+ collections+ );toUploadFiles.current = null;} catch (e) {logError(e, 'Failed to upload files to new collections');}};- const waitInQueueAndUploadFiles = (+ const waitInQueueAndUploadFiles = async (filesWithCollectionToUploadIn: FileWithCollection[],collections: Collection[],uploaderName?: string@@ -494,6 +497,7 @@ export default function Uploader(props: Props) {uploaderName));+ await currentUploadPromise.current;};const preUploadAction = async () => {