Merge pull request #1653 from ONLYOFFICE/fix/bugfix

[PE] Fix  Bug 56141
This commit is contained in:
Julia Radzhabova 2022-03-25 12:58:57 +03:00 committed by GitHub
commit 69c6e33e37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'),