mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Lint fix
This commit is contained in:
parent
3526e35012
commit
3426aa8b2a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user