#1196 Keep flowchart node label text (if already defined) when a style is applied

This commit is contained in:
Marc Faber
2020-01-14 23:37:30 +01:00
parent eade3d0a2d
commit b1bfdec473
4 changed files with 41 additions and 1 deletions

View File

@@ -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;
}
}