Skip to content

Commit

Permalink
Merge pull request #6059 from mermaid-js/6058-task-id-as-a-number
Browse files Browse the repository at this point in the history
fix:Kanban diagrams will not render when adding a number as ticket id or assigned for a task
  • Loading branch information
ashishjain0512 authored Nov 14, 2024
2 parents c8ce416 + 01b5079 commit 8328f74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-rocks-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'mermaid': patch
---

fix: Kanban diagrams will not render when adding a number as ticket id or assigned for a task
6 changes: 3 additions & 3 deletions packages/mermaid/src/diagrams/kanban/kanbanDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ const addNode = (level: number, id: string, descr: string, type: number, shapeDa
node.label = doc?.label;
}
if (doc?.icon) {
node.icon = doc?.icon;
node.icon = doc?.icon.toString();
}
if (doc?.assigned) {
node.assigned = doc?.assigned;
node.assigned = doc?.assigned.toString();
}
if (doc?.ticket) {
node.ticket = doc?.ticket;
node.ticket = doc?.ticket.toString();
}

if (doc?.priority) {
Expand Down

0 comments on commit 8328f74

Please sign in to comment.