This commit is contained in:
OVSharova 2021-12-12 01:18:15 +03:00
parent 0a49fe5815
commit 0ccf126f15

View file

@ -70,7 +70,7 @@ define([
this._state.activeGroup = this.EffectGroupData[0].id;
this._state.activeGroupValue = this.EffectGroupData[0].value;
this.EffectGroupData.forEach(function (item) {item.displayValue = item.caption;});
if (this.options.activeEffect != undefined) {
if ((this.options.activeEffect != undefined) && (this.options.activeEffect != AscFormat.ANIM_PRESET_NONE)){
this._state.activeEffect = this.options.activeEffect;
var itemEffect = _.findWhere(this.allEffects,{value: this._state.activeEffect});
this._state.activeGroup = itemEffect.group;