Skip to content

Commit eee44fe

Browse files
committed
fix: Do not add nodes with no label
1 parent bad6160 commit eee44fe

File tree

1 file changed

+1
-0
lines changed
  • packages/diagrams/src/componentDiagram/graph

1 file changed

+1
-0
lines changed

packages/diagrams/src/componentDiagram/graph/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default class Graph {
4343

4444
setNodeFromCodeObject(codeObject, parentId = null) {
4545
let label = codeObject.prettyName;
46+
if (!label) return;
4647

4748
if (codeObject.type === CodeObjectType.PACKAGE || codeObject.type === CodeObjectType.HTTP) {
4849
const numChildren = codeObject.childLeafs().length;

0 commit comments

Comments
 (0)