Skip to content

Commit

Permalink
update edge IDs to reference classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreywolf committed Aug 28, 2023
1 parent 3f5ec01 commit b93ad32
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 @@ -230,7 +230,7 @@ export const addRelations = function (relations: ClassRelation[], g: graphlib.Gr
//Set relationship style and line type
classes: 'relation',
pattern: edge.relation.lineType == 1 ? 'dashed' : 'solid',
id: 'id' + cnt,
id: 'id_' + edge.id1 + '_' + edge.id2,
// Set link type for rendering
arrowhead: edge.type === 'arrow_open' ? 'none' : 'normal',
//Set edge extra labels
Expand Down

0 comments on commit b93ad32

Please sign in to comment.