Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
Bug fix for null parent (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-larsen authored and yotamberk committed Aug 9, 2017
1 parent b5e94a9 commit 97f33d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/timeline/component/item/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ Item.prototype.setData = function(data) {
if (groupChanged && this.parent != null) {
this.parent.itemSet._moveToGroup(this, data.group);
}
this.parent.stackDirty = true;

if (this.parent) {
this.parent.stackDirty = true;
}

var subGroupChanged = data.subgroup != undefined && this.data.subgroup != data.subgroup;
if (subGroupChanged && this.parent != null) {
Expand Down

0 comments on commit 97f33d2

Please sign in to comment.