Skip to content

Commit 4b5a696

Browse files
vik-13mgechev
authored andcommitted
fix: module's third-party imports
1 parent e147b40 commit 4b5a696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/electron/states/module-tree.state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class ModuleTreeState extends State {
8989
}
9090

9191
private _getModuleGraph(module: NgModuleSymbol): Graph<NgModuleSymbol> {
92-
const imports = module.getImports();
92+
const imports = module.getImports().filter((m?: NgModuleSymbol) => !!m);
9393
const nodes: Node<NgModuleSymbol>[] = [
9494
{
9595
id: getId(module),

0 commit comments

Comments
 (0)