Skip to content

Commit

Permalink
fix: [activityDiagram] wrong condition else label
Browse files Browse the repository at this point in the history
  • Loading branch information
hikerpig committed Apr 8, 2024
1 parent 6b242d7 commit da93808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-hotels-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pintora/diagrams': patch
---

fix: [activityDiagram] wrong condition else label
2 changes: 1 addition & 1 deletion packages/pintora-diagrams/src/activity/artist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ class ActivityDraw {
drawChildren(condition.then.children, condition.then.label || 'yes')

if (condition.else) {
drawChildren(condition.else.children, 'no')
drawChildren(condition.else.children, condition.else.label || 'no')
}

return result
Expand Down

0 comments on commit da93808

Please sign in to comment.