mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Merge pull request #6059 from mermaid-js/6058-task-id-as-a-number
fix:Kanban diagrams will not render when adding a number as ticket id or assigned for a task
This commit is contained in:
commit
8328f74751
5
.changeset/eleven-rocks-leave.md
Normal file
5
.changeset/eleven-rocks-leave.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'mermaid': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: Kanban diagrams will not render when adding a number as ticket id or assigned for a task
|
@ -138,13 +138,13 @@ const addNode = (level: number, id: string, descr: string, type: number, shapeDa
|
|||||||
node.label = doc?.label;
|
node.label = doc?.label;
|
||||||
}
|
}
|
||||||
if (doc?.icon) {
|
if (doc?.icon) {
|
||||||
node.icon = doc?.icon;
|
node.icon = doc?.icon.toString();
|
||||||
}
|
}
|
||||||
if (doc?.assigned) {
|
if (doc?.assigned) {
|
||||||
node.assigned = doc?.assigned;
|
node.assigned = doc?.assigned.toString();
|
||||||
}
|
}
|
||||||
if (doc?.ticket) {
|
if (doc?.ticket) {
|
||||||
node.ticket = doc?.ticket;
|
node.ticket = doc?.ticket.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doc?.priority) {
|
if (doc?.priority) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user