From dbed7aa23c497c6352c4c3717caaf0e085e81238 Mon Sep 17 00:00:00 2001 From: Akmal Isomadinov Date: Tue, 23 Jul 2024 18:14:15 +0500 Subject: [PATCH] Client: Removed legacy code change file status (issue: open simple PDF) --- packages/client/src/store/FilesStore.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/client/src/store/FilesStore.js b/packages/client/src/store/FilesStore.js index b99c584f78..e186d1bd5c 100644 --- a/packages/client/src/store/FilesStore.js +++ b/packages/client/src/store/FilesStore.js @@ -3961,19 +3961,6 @@ class FilesStore { openDocEditor = (id, preview = false, shareKey = null, editForm = false) => { const { openOnNewPage } = this.filesSettingsStore; - const foundIndex = this.files.findIndex((x) => x.id === id); - const file = foundIndex !== -1 ? this.files[foundIndex] : undefined; - if ( - file && - !preview && - file.rootFolderType !== FolderType.Archive && - file.fileExst !== ".oform" - ) { - const newStatus = file.fileStatus | FileStatus.IsEditing; - - this.updateSelectionStatus(id, newStatus, true); - this.updateFileStatus(foundIndex, newStatus); - } const share = shareKey ? shareKey : this.publicRoomStore.publicRoomKey;