From b07e4521c40717473654c2c210cbb4ae45ccfaaf Mon Sep 17 00:00:00 2001 From: Xavier Codinas Date: Wed, 29 Jun 2016 14:31:25 +0200 Subject: [PATCH] Fix root parent condition issue5668 review31271002 --- src/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;