Skip to content

Commit

Permalink
Fixed Bug 55056 - Client.Files. Removed the possibility of simultaneo…
Browse files Browse the repository at this point in the history
…us operations with files.
  • Loading branch information
gopienkonikita committed Jan 24, 2022
1 parent 8863e41 commit e865ee0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions products/ASC.Files/Client/src/store/FilesActionsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,11 @@ class FilesActionStore {
this.checkOperationConflict(operationData);
};

checkFileConflicts = (destFolderId, folderIds, fileIds) =>
checkFileConflicts(destFolderId, folderIds, fileIds);
checkFileConflicts = (destFolderId, folderIds, fileIds) => {
this.filesStore.addActiveItems(fileIds);
this.filesStore.addActiveItems(null, folderIds);
return checkFileConflicts(destFolderId, folderIds, fileIds);
};

setConflictDialogData = (conflicts, operationData) => {
this.dialogsStore.setConflictResolveDialogItems(conflicts);
Expand All @@ -674,10 +677,7 @@ class FilesActionStore {

checkOperationConflict = async (operationData) => {
const { destFolderId, folderIds, fileIds } = operationData;
const { setBufferSelection, addActiveItems } = this.filesStore;

addActiveItems(fileIds);
addActiveItems(null, folderIds);
const { setBufferSelection } = this.filesStore;

let conflicts;

Expand Down

0 comments on commit e865ee0

Please sign in to comment.