Check if children is non empty
This commit is contained in:
parent
9ad208a171
commit
323f019c0d
1 changed files with 1 additions and 1 deletions
|
@ -668,7 +668,7 @@ class ModelForest {
|
|||
|
||||
var children = this.get_children(node);
|
||||
|
||||
if (children) {
|
||||
if (children && children.length) {
|
||||
if (struct_data.child_sort)
|
||||
children.sort(struct_data.child_sort);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue