[SSE mobile] Fix Bug 60422

This commit is contained in:
SergeyEzhin 2022-12-30 13:03:57 +04:00
parent 1b6480f7fe
commit 0f15e982b1

View file

@ -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;