Skip to content

Commit

Permalink
fix(tree grid): assert node children is defined before spreading (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Aug 29, 2019
1 parent 02080fb commit 26ad5d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export class NbTreeGridService<T> {
return node;
}

toCheck.push(...node.children);
if (node.hasChildren()) {
toCheck.push(...node.children);
}
}
}
}

0 comments on commit 26ad5d2

Please sign in to comment.