mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-11 10:09:39 +02:00
Lint fix
This commit is contained in:
@@ -19,7 +19,7 @@ export const labelHelper = (parent, node, _classes, isNode) => {
|
|||||||
// Create the label and insert it after the rect
|
// Create the label and insert it after the rect
|
||||||
const label = shapeSvg.insert('g').attr('class', 'label').attr('style', node.labelStyle);
|
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
|
const text = label
|
||||||
.node()
|
.node()
|
||||||
|
Reference in New Issue
Block a user