This commit is contained in:
Knut Sveidqvist 2021-11-30 20:41:57 +01:00
parent 3526e35012
commit 3426aa8b2a
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export const labelHelper = (parent, node, _classes, isNode) => {
// Create the label and insert it after the rect
const label = shapeSvg.insert('g').attr('class', 'label').attr('style', node.labelStyle);
const labelText = typeof node.labelText === 'string' ? node.labelText:node.labelText[0];
const labelText = typeof node.labelText === 'string' ? node.labelText : node.labelText[0];
const text = label
.node()