Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Feb 22, 2024
1 parent 240d905 commit db1872b
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ export async function StartMenuOptionDesktopEditorOpenSelection(
setIsError: React.Dispatch<React.SetStateAction<string>>,
messageDesktopEditorUnableToOpen: string,
setModalConfirmationOpenFiles: (value: React.SetStateAction<boolean>) => void,
isReadOnly: boolean,
editorEnabled: boolean
isReadOnly: boolean
) {
if (editorEnabled !== true || isReadOnly) {
if (isReadOnly) {
return;
}
const toDesktopOpenList = new URLPath().MergeSelectFileIndexItem(select, state.fileIndexItems);
Expand Down Expand Up @@ -108,8 +107,7 @@ const MenuOptionDesktopEditorOpenSelection: React.FunctionComponent<IMenuOptionD
setIsError,
MessageDesktopEditorUnableToOpen,
setModalConfirmationOpenFiles,
isReadOnly,
dataFeatures?.openEditorEnabled === true
dataFeatures?.openEditorEnabled !== true ? true : isReadOnly
).then(() => {
// do nothing
});
Expand Down Expand Up @@ -149,8 +147,7 @@ const MenuOptionDesktopEditorOpenSelection: React.FunctionComponent<IMenuOptionD
setIsError,
MessageDesktopEditorUnableToOpen,
setModalConfirmationOpenFiles,
isReadOnly,
dataFeatures?.openEditorEnabled === true
isReadOnly
)
}
localization={
Expand Down

0 comments on commit db1872b

Please sign in to comment.