diff --git a/packages/diagrams/src/componentDiagram/graph/index.js b/packages/diagrams/src/componentDiagram/graph/index.js index a0a55e7c9f..d70f77340b 100644 --- a/packages/diagrams/src/componentDiagram/graph/index.js +++ b/packages/diagrams/src/componentDiagram/graph/index.js @@ -43,6 +43,7 @@ export default class Graph { setNodeFromCodeObject(codeObject, parentId = null) { let label = codeObject.prettyName; + if (!label) return; if (codeObject.type === CodeObjectType.PACKAGE || codeObject.type === CodeObjectType.HTTP) { const numChildren = codeObject.childLeafs().length;