refactor: add an undefined control

pull/5268/head
mehmet-erim 5 years ago
parent e9b85b45f9
commit f5e51249e8

@ -13,6 +13,6 @@ export class RoutesComponent {
constructor(public readonly routes: RoutesService) {}
isDropdown(node: TreeNode<ABP.Route>) {
return !node.isLeaf || this.routes.hasChildren(node.name);
return !node?.isLeaf || this.routes.hasChildren(node.name);
}
}

Loading…
Cancel
Save