[SSE] Fix changing chart type

This commit is contained in:
Julia Radzhabova 2021-05-04 12:24:14 +03:00
parent eb400599d9
commit c8e5f8e086

View file

@ -1092,7 +1092,7 @@ define([
var range = props.getRange(), var range = props.getRange(),
isvalid = (!_.isEmpty(range)) ? me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, range, true, props.getInRows(), props.getType()) : Asc.c_oAscError.ID.No; isvalid = (!_.isEmpty(range)) ? me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, range, true, props.getInRows(), props.getType()) : Asc.c_oAscError.ID.No;
if (isvalid == Asc.c_oAscError.ID.No) { if (isvalid == Asc.c_oAscError.ID.No) {
(ischartedit) ? me.api.asc_editChartDrawingObject(props) : me.api.asc_addChartDrawingObject(props); !ischartedit && me.api.asc_addChartDrawingObject(props);
} else { } else {
var msg = me.txtInvalidRange; var msg = me.txtInvalidRange;
switch (isvalid) { switch (isvalid) {