mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-05 21:34:14 +01:00
chore: Add eslint-unicorn & fix
This commit is contained in:
@@ -21,7 +21,7 @@ export const labelHelper = (parent, node, _classes, isNode) => {
|
||||
|
||||
// Replace labelText with default value if undefined
|
||||
let labelText;
|
||||
if (typeof node.labelText === 'undefined') {
|
||||
if (node.labelText === undefined) {
|
||||
labelText = '';
|
||||
} else {
|
||||
labelText = typeof node.labelText === 'string' ? node.labelText : node.labelText[0];
|
||||
|
||||
Reference in New Issue
Block a user