Skip to content

Commit

Permalink
fix: check if items are set (#15195)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed May 16, 2023
1 parent 0a8187d commit 5811675
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ pimcore.object.tags.fieldcollections = Class.create(pimcore.object.tags.abstract
return this.component;
},


postSaveObject: function(e) {
if (e.detail.object.id === this.object.id) {
if (this.component.items && (e.detail.object.id === this.object.id)) {
for (var itemIndex = 0; itemIndex < this.component.items.items.length; itemIndex++) {
var item = this.component.items.items[itemIndex];
item["pimcore_oIndex"] = itemIndex;
Expand Down

0 comments on commit 5811675

Please sign in to comment.