Merge branch 'release/v1.2' of github.com:ONLYOFFICE/AppServer into release/v1.2

This commit is contained in:
Tatiana Lopaeva 2022-07-06 17:56:59 +03:00
commit 671addab40

View File

@ -221,12 +221,21 @@ class FilesStore {
false
);
this.createThumbnail(id);
this.updateFileStatus(
foundIndex,
this.files[foundIndex].fileStatus & ~FileStatus.IsEditing
);
if (typeof id == "string") {
this.getFileInfo(id);
} else {
this.createThumbnail(id);
}
});
}
updateSelectionStatus = (id, status, isEditing) => {
const index = this.selection.findIndex((x) => x.id === id && x.fileExst);
const index = this.selection.findIndex((x) => x.id === id);
if (index !== -1) {
this.selection[index].fileStatus = status;