Skip to content

Commit

Permalink
test: early return when imports undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 10, 2025
1 parent 2bdec35 commit 8dca14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/injector/topology-tree/topology-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class TopologyTree {
}

private traverseAndMapToTree(node: TreeNode<Module>, depth = 1) {
if (!node.value.imports) {
if (!node.value?.imports) {
return;
}
node.value.imports.forEach(child => {
Expand Down

0 comments on commit 8dca14e

Please sign in to comment.