diff --git a/.changeset/eleven-rocks-leave.md b/.changeset/eleven-rocks-leave.md new file mode 100644 index 0000000000..a8fcbae1f0 --- /dev/null +++ b/.changeset/eleven-rocks-leave.md @@ -0,0 +1,5 @@ +--- +'mermaid': patch +--- + +fix: Kanban diagrams will not render when adding a number as ticket id or assigned for a task diff --git a/packages/mermaid/src/diagrams/kanban/kanbanDb.ts b/packages/mermaid/src/diagrams/kanban/kanbanDb.ts index 478c378038..a9bcbb7b81 100644 --- a/packages/mermaid/src/diagrams/kanban/kanbanDb.ts +++ b/packages/mermaid/src/diagrams/kanban/kanbanDb.ts @@ -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) {