[PE] Fix Bug 56141

This commit is contained in:
Julia Radzhabova 2022-03-25 11:47:35 +03:00
parent a5b73c927f
commit 4a1ff1cdf4

View file

@ -410,7 +410,7 @@ define([
} else { // add custom effect to appropriate group
if (group) {
var items = store.where({group: group.get('id')});
var index = (items && items.length>0) ? store.indexOf(items.at(items.length-1)) : store.length-1;
var index = (items && items.length>0) ? store.indexOf(items[items.length-1]) : store.length-1;
var rec = _.findWhere(Common.define.effectData.getEffectFullData(), {group: group.get('id'), value: this._state.Effect});
item = store.add(new Common.UI.DataViewModel({
group: group.get('id'),