Skip to content

Commit 73b2061

Browse files
rodion-arrmhdawson
authored andcommitted
Fix show command for full flat tree
1 parent 31deba4 commit 73b2061

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/cli/commands/show.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ async function printModule (module, depth, argv) {
2323
}
2424

2525
// sort child modules
26-
module.children = new Map([...module.children.entries()].sort());
26+
module.edgesOut = new Map([...module.edgesOut.entries()].sort());
2727

2828
// print info for all of the child modules
29-
for (const child of module.children.values()) {
30-
await printModule(child, depth + 1, argv);
29+
for (const child of module.edgesOut.values()) {
30+
await printModule(child.to, depth + 1, argv);
3131
}
3232
}
3333

0 commit comments

Comments
 (0)