Skip to content

Commit

Permalink
fix: Do not add nodes with no label
Browse files Browse the repository at this point in the history
  • Loading branch information
ahtrotta committed Nov 29, 2023
1 parent bad6160 commit eee44fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/diagrams/src/componentDiagram/graph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eee44fe

Please sign in to comment.