From 0f15e982b1c307e475263a1c20ceb0d16b99ff13 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 30 Dec 2022 13:03:57 +0400 Subject: [PATCH 1/2] [SSE mobile] Fix Bug 60422 --- apps/spreadsheeteditor/mobile/src/controller/ContextMenu.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 31f23f00caf4432272d984ad39e58e23d1b18c4c Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Fri, 30 Dec 2022 13:54:07 +0400 Subject: [PATCH 2/2] [SSE mobile] Fix Bug 60377 --- apps/spreadsheeteditor/mobile/src/controller/Search.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {