Web: Files: fixed upload folder hierarchy

This commit is contained in:
Nikita Gopienko 2021-11-02 14:21:45 +03:00
parent 93fae1580e
commit 5ba3df944c

View File

@ -616,7 +616,9 @@ class UploadDataStore {
const toFolder =
currentFile.fileInfo.folderId === this.selectedFolderStore.id
? currentFile.fileInfo.folderId
: toFolderId;
: folderInfo
? toFolderId
: null;
return this.throttleRefreshFiles(toFolder, currentFile, folderInfo);
}