From 6b23647bec67a3f3dc13c0a7cb105cde8195bf54 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 14 Nov 2024 15:07:46 +0100 Subject: [PATCH 1/2] #6058 Casting task-id and assigned fields to string after yaml parsing --- packages/mermaid/src/diagrams/kanban/kanbanDb.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { From 01b5079562ec8d34ce9964910f168873843c68f8 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 14 Nov 2024 15:13:07 +0100 Subject: [PATCH 2/2] Adding changeset --- .changeset/eleven-rocks-leave.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/eleven-rocks-leave.md 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