🐛 Fix resetting root on re-upload (#846)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user