Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
AUI-3205 Fix tree is built without children nodes on Page Tree, chang…
Browse files Browse the repository at this point in the history
…e condition use instance.hasChildNodes() instead
  • Loading branch information
georgel-pop-lr authored and markocikos committed Sep 7, 2021
1 parent 40205a8 commit 9f79e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aui-tree/js/aui-tree-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ var TreeNode = A.Component.create({
if (!instance.get('expanded')) {
nodeContainer.hide();
}
if (this.childrenLength) {
if (instance.hasChildNodes()) {
boundingBox.append(nodeContainer);
}
}
Expand Down

0 comments on commit 9f79e3f

Please sign in to comment.