[SSE] Fix statusbar when sheet-views feature is not supported

This commit is contained in:
Julia Radzhabova 2020-09-29 14:22:39 +03:00
parent c10603dd78
commit 1c15e12505
2 changed files with 2 additions and 2 deletions

View file

@ -712,7 +712,7 @@ define([
onApiActiveSheetChanged: function (index) {
this.statusbar.tabMenu.hide();
if (this._sheetViewTip && this._sheetViewTip.isVisible() && !this.api.asc_getActiveNamedSheetView(index)) { // hide tip when sheet in the default mode
if (this._sheetViewTip && this._sheetViewTip.isVisible() && this.api.asc_getActiveNamedSheetView && !this.api.asc_getActiveNamedSheetView(index)) { // hide tip when sheet in the default mode
this._sheetViewTip.hide();
}
},

View file

@ -494,7 +494,7 @@ define([
while (++i < wc) {
locked = me.api.asc_isWorksheetLockedOrDeleted(i);
name = me.api.asc_getActiveNamedSheetView(i) || '';
name = me.api.asc_getActiveNamedSheetView ? me.api.asc_getActiveNamedSheetView(i) || '' : '';
tab = {
sheetindex : i,
index : items.length,