diff --git a/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx b/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx index 7650220d2..8c4bb505a 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx @@ -260,7 +260,7 @@ class ContextMenu extends ContextMenuController { let iscellmenu, isrowmenu, iscolmenu, isallmenu, ischartmenu, isimagemenu, istextshapemenu, isshapemenu, istextchartmenu; const seltype = cellinfo.asc_getSelectionType(); const comments = cellinfo.asc_getComments(); //prohibit adding multiple comments in one cell; - const isSolvedComment = comments[0].asc_getSolved(); + const isSolvedComment = comments?.length && comments[0].asc_getSolved(); switch (seltype) { case Asc.c_oAscSelectionType.RangeCells: iscellmenu = true; break; diff --git a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx index cb2fa3dde..1df9e4366 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx @@ -149,7 +149,7 @@ const Search = withTranslation()(props => { const api = Common.EditorApi.get(); let lookIn = +params.lookIn === 0; - let searchIn = +params.searchIn === 1; + let searchIn = +params.searchIn; let searchBy = +params.searchBy === 0; if (params.find && params.find.length) { @@ -180,7 +180,7 @@ const Search = withTranslation()(props => { const onReplaceQuery = params => { const api = Common.EditorApi.get(); let lookIn = +params.lookIn === 0; - let searchIn = +params.searchIn === 1; + let searchIn = +params.searchIn; let searchBy = +params.searchBy === 0; // if (params.find && params.find.length) { @@ -204,7 +204,7 @@ const Search = withTranslation()(props => { const onReplaceAllQuery = params => { const api = Common.EditorApi.get(); let lookIn = +params.lookIn === 0; - let searchIn = +params.searchIn === 1; + let searchIn = +params.searchIn; let searchBy = +params.searchBy === 0; // if (params.find && params.find.length) {