Web: Files: fixed folder update after upload

This commit is contained in:
Nikita Gopienko 2021-11-02 10:54:35 +03:00
parent e6628c4963
commit fc93266964

View File

@ -606,9 +606,7 @@ class UploadDataStore {
//TODO:
if (currentFile.action === "uploaded") {
const file =
path[path.length - 2] === this.selectedFolderStore.id
? currentFile
: null;
toFolderId === this.selectedFolderStore.id ? currentFile : null;
return this.throttleRefreshFiles(toFolderId, file, folderInfo);
}
return Promise.resolve();