Skip to content

Commit

Permalink
fix: classrenderer v2 using in op
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed May 4, 2024
1 parent e2ca8e8 commit 58af763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/class/classRenderer-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const addNotes = function (
g.setNode(vertex.id, node);
log.info('setNode', node);

if (!vertex.class || !(vertex.class in classes)) {
if (!vertex.class || !classes.has(vertex.class)) {
return;
}
const edgeId = startEdgeId + i;
Expand Down

0 comments on commit 58af763

Please sign in to comment.