[SSE] Fix locking chart settings

This commit is contained in:
Julia Radzhabova 2022-09-07 20:23:40 +03:00
parent 08f6dd339c
commit 685ac13b54

View file

@ -212,7 +212,7 @@ define([
var chartSettings = this.api.asc_getChartObject(true), // don't lock chart object
series = chartSettings ? chartSettings.getSeries() : null;
this.btnSwitch.setDisabled(!series || series.length<1 || !chartSettings || !chartSettings.getRange());
this.btnSwitch.setDisabled(this._locked || !series || series.length<1 || !chartSettings || !chartSettings.getRange());
} else { //sparkline
this._originalProps = props;
this.isChart = false;