Skip to content

Commit

Permalink
fix: class diagram notes plss
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed May 4, 2024
1 parent 6f1a553 commit 1cbd730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/class/classRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const draw = function (text, id, _version, diagObj) {
// metadata about the node. In this case we're going to add labels to each of
// our nodes.
g.setNode(node.id, node);
if (note.class && note.class in classes) {
if (note.class && classes.has(note.class)) {
g.setEdge(
note.id,
getGraphId(note.class),
Expand Down

0 comments on commit 1cbd730

Please sign in to comment.