Merge pull request #1837 from ONLYOFFICE/fix/bugfix

[SSE] Fix Bug 57817
This commit is contained in:
Julia Radzhabova 2022-06-30 15:01:20 +03:00 committed by GitHub
commit a2cddc8deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ define([
this._state.keepRatio=value;
}
var chartSettings = this.api.asc_getChartObject(),
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());
} else { //sparkline
@ -1287,7 +1287,7 @@ define([
onSwitch: function() {
if (this.api){
var props = this.api.asc_getChartObject();
var props = this.api.asc_getChartObject(true);
if (props) {
props.startEdit();
var res = props.switchRowCol();