Skip to content

Commit

Permalink
#5237 added support for node with label/description
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjain0512 committed Apr 26, 2024
1 parent dd5bfb3 commit 8102ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mermaid/src/diagrams/state/stateDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ const dataFetcher = (parentId, doc, nodes, edges) => {
} else {
nodes.push({
...item,
labelText: item.id,
id: item.id,
labelText: item.descriptions?.length > 0 ? item.descriptions[0] : item.id,
// description: item.id,
labelType: 'text',
labelStyle: '',
Expand Down

0 comments on commit 8102ba4

Please sign in to comment.