This commit is contained in:
Manav Rathi 2024-04-25 15:48:54 +05:30
parent ca0afc2f3a
commit 73292a5405
No known key found for this signature in database

View file

@ -401,9 +401,7 @@ class UploadManager {
mediaFiles as ClusterableFile[],
);
if (uploadCancelService.isUploadCancelationRequested()) {
throw Error(CustomError.UPLOAD_CANCELLED);
}
this.abortIfCancelled();
this.uiService.setFilenames(
new Map<number, string>(
@ -531,9 +529,8 @@ class UploadManager {
const uiService = this.uiService;
while (this.filesToBeUploaded.length > 0) {
if (uploadCancelService.isUploadCancelationRequested()) {
throw Error(CustomError.UPLOAD_CANCELLED);
}
this.abortIfCancelled();
let fileWithCollection = this.filesToBeUploaded.pop();
const { collectionID } = fileWithCollection;
const collection = this.collections.get(collectionID);