Skip to content

Commit

Permalink
Web: Files: fixed upload folder hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
gopienkonikita committed Oct 28, 2021
1 parent b72ef82 commit b30ae58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion products/ASC.Files/Client/src/store/UploadDataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,11 @@ class UploadDataStore {
} else {
//TODO:
if (currentFile.action === "uploaded") {
return this.throttleRefreshFiles(toFolderId, currentFile, folderInfo);
const file =
path[path.length - 2] === this.selectedFolderStore.id
? currentFile
: null;
return this.throttleRefreshFiles(toFolderId, file, folderInfo);
}
return Promise.resolve();
}
Expand Down

0 comments on commit b30ae58

Please sign in to comment.