Revert "[DE] Clear chart styles on start loading"

This reverts commit 0dbe14e9fc.
This commit is contained in:
Julia Radzhabova 2022-02-16 15:07:42 +03:00
parent 0dbe14e9fc
commit 8e6ef9be94

View file

@ -447,10 +447,6 @@ define([
this._state.currentStyleFound = false;
this._state.drawCurrentStyle = false;
this._state.previewStylesCount = count;
if (this.cmbChartStyle) {
this.cmbChartStyle.menuPicker.store.reset();
this.cmbChartStyle.clearComboView();
}
},
onEndChartStylesPreview: function(){
@ -458,6 +454,9 @@ define([
if (this.cmbChartStyle.menuPicker.store.length>0) {
!this._state.currentStyleFound && this.selectCurrentChartStyle();
this.cmbChartStyle.menuPicker.scroller.update({alwaysVisibleY: true});
} else {
this.cmbChartStyle.menuPicker.store.reset();
this.cmbChartStyle.clearComboView();
}
this.cmbChartStyle.setDisabled(this.cmbChartStyle.menuPicker.store.length<1 || this._locked);
}