Skip to content

Commit

Permalink
Merge branch 'release/1.0.0' of https://github.com/ONLYOFFICE/AppServer
Browse files Browse the repository at this point in the history
… into release/1.0.0
  • Loading branch information
AlexeySafronov committed Oct 26, 2021
2 parents 9d0de00 + 85de414 commit 51312c8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion products/ASC.Files/Client/src/store/FilesActionsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,17 @@ class FilesActionStore {
};

openLocationAction = (locationId, isFolder) => {
const { createNewExpandedKeys, setExpandedKeys } = this.treeFoldersStore;

const locationFilter = isFolder ? this.filesStore.filter : null;
this.filesStore.setBufferSelection(null);
return this.filesStore.fetchFiles(locationId, locationFilter);
return this.filesStore
.fetchFiles(locationId, locationFilter)
.then((data) => {
const pathParts = data.selectedFolder.pathParts;
const newExpandedKeys = createNewExpandedKeys(pathParts);
setExpandedKeys(newExpandedKeys);
});
/*.then(() =>
//isFolder ? null : this.selectRowAction(!checked, item)
);*/
Expand Down

0 comments on commit 51312c8

Please sign in to comment.