From 08d47ca5870b696d8c818b4de68bf1f92f268e4f Mon Sep 17 00:00:00 2001 From: Montassar Ghanmy Date: Mon, 10 Mar 2025 09:51:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20resetting=20root=20on=20re?= =?UTF-8?q?-upload=20(#846)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/features/files/services/file-upload-service.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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);