Skip to content

Commit

Permalink
Web: Files: fixed upload folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gopienkonikita committed Nov 3, 2021
1 parent 94fbdfa commit daf7593
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions products/ASC.Files/Client/src/store/UploadDataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,6 @@ class UploadDataStore {
const newFolders = folders;
const path = currentFile.path;

if (path[path.length - 1] !== this.selectedFolderStore.id) {
return;
}

let folderInfo = null;
const index = path.findIndex((x) => x === this.selectedFolderStore.id);
const folderId = index !== -1 ? path[index + 1] : null;
Expand All @@ -483,6 +479,10 @@ class UploadDataStore {
}
}

if (newPath[newPath.length - 1] !== this.selectedFolderStore.id) {
return;
}

const addNewFile = () => {
if (folderInfo) {
const isFolderExist = newFolders.find((x) => x.id === folderInfo.id);
Expand Down

0 comments on commit daf7593

Please sign in to comment.