diff --git a/src/model.js b/src/model.js index a615809394..9badde6bd3 100644 --- a/src/model.js +++ b/src/model.js @@ -1137,7 +1137,7 @@ }, root_parent: function root_parent() { var parent = this; - while (!parent.group.parent) { + while (parent.group.parent) { parent = parent.group.parent; } return parent;