mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 08:19:43 +02:00
#1196 Keep flowchart node label text (if already defined) when a style is applied
This commit is contained in:
@@ -52,7 +52,7 @@ export const addVertex = function(_id, text, type, style, classes) {
|
||||
|
||||
vertices[id].text = txt;
|
||||
} else {
|
||||
if (!vertices[id].text) {
|
||||
if (typeof vertices[id].text === 'undefined') {
|
||||
vertices[id].text = _id;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user