Merge pull request #2176 from ONLYOFFICE/feature/fix-bugs
Feature/fix bugs
This commit is contained in:
commit
68eebd29c4
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue