Check if children is non empty

This commit is contained in:
Ludovic Stephan 2017-04-09 13:35:01 -03:00
parent 9ad208a171
commit 323f019c0d

View file

@ -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