Merge pull request #2176 from ONLYOFFICE/feature/fix-bugs

Feature/fix bugs
This commit is contained in:
maxkadushkin 2022-12-30 17:59:24 +03:00 committed by GitHub
commit 68eebd29c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

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;

View file

@ -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) {