diff --git a/tdrive/frontend/src/app/features/files/services/file-upload-service.ts b/tdrive/frontend/src/app/features/files/services/file-upload-service.ts index 607c6730..465406bb 100644 --- a/tdrive/frontend/src/app/features/files/services/file-upload-service.ts +++ b/tdrive/frontend/src/app/features/files/services/file-upload-service.ts @@ -289,6 +289,13 @@ class FileUploadService { return { [key]: root[key] }; }); + // Reset existing uploads + for (const rootKey of rootKeys) { + if (rootKey in this.groupIds) { + this.resetStates([rootKey]); + } + } + // tree promises const treePromises = rootTrees.map(tree => { return traverserTreeLevel(tree, context.parentId, true);