From db1872b53efd6fe0c550a3db84f9d3164dc9e3ae Mon Sep 17 00:00:00 2001 From: Dion Date: Thu, 22 Feb 2024 23:55:52 +0100 Subject: [PATCH] setup --- .../menu-option-desktop-editor-open-selection.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/starsky/starsky/clientapp/src/components/molecules/menu-option-desktop-editor-open-selection/menu-option-desktop-editor-open-selection.tsx b/starsky/starsky/clientapp/src/components/molecules/menu-option-desktop-editor-open-selection/menu-option-desktop-editor-open-selection.tsx index 1a1ee0cfb5..4a444ca8af 100644 --- a/starsky/starsky/clientapp/src/components/molecules/menu-option-desktop-editor-open-selection/menu-option-desktop-editor-open-selection.tsx +++ b/starsky/starsky/clientapp/src/components/molecules/menu-option-desktop-editor-open-selection/menu-option-desktop-editor-open-selection.tsx @@ -51,10 +51,9 @@ export async function StartMenuOptionDesktopEditorOpenSelection( setIsError: React.Dispatch>, messageDesktopEditorUnableToOpen: string, setModalConfirmationOpenFiles: (value: React.SetStateAction) => void, - isReadOnly: boolean, - editorEnabled: boolean + isReadOnly: boolean ) { - if (editorEnabled !== true || isReadOnly) { + if (isReadOnly) { return; } const toDesktopOpenList = new URLPath().MergeSelectFileIndexItem(select, state.fileIndexItems); @@ -108,8 +107,7 @@ const MenuOptionDesktopEditorOpenSelection: React.FunctionComponent { // do nothing }); @@ -149,8 +147,7 @@ const MenuOptionDesktopEditorOpenSelection: React.FunctionComponent