🐛 Fix resetting root on re-upload (#846)

This commit is contained in:
Montassar Ghanmy
2025-03-10 09:51:06 +01:00
committed by GitHub
parent fe6c13e067
commit 08d47ca587
@@ -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);