From 4a1ff1cdf46e98844b4c77af48636fff9b25b6dc Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 25 Mar 2022 11:47:35 +0300 Subject: [PATCH] [PE] Fix Bug 56141 --- apps/presentationeditor/main/app/controller/Animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/presentationeditor/main/app/controller/Animation.js b/apps/presentationeditor/main/app/controller/Animation.js index f653b31f4..bf70728f0 100644 --- a/apps/presentationeditor/main/app/controller/Animation.js +++ b/apps/presentationeditor/main/app/controller/Animation.js @@ -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'),