Merge pull request #1943 from ONLYOFFICE/fix/bugfix

[SSE] Fix locking chart settings
This commit is contained in:
Julia Radzhabova 2022-09-07 20:30:38 +03:00 committed by GitHub
commit 7bb35e8071
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;