mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-04 03:24:13 +01:00
chore: resolve eslint warnings in packages/mermaid/src/dagre-wrapper/createLabel.js
This commit is contained in:
@@ -45,7 +45,7 @@ function addHtmlLabel(node) {
|
|||||||
* @deprecated svg-util/createText instead
|
* @deprecated svg-util/createText instead
|
||||||
*/
|
*/
|
||||||
const createLabel = (_vertexText, style, isTitle, isNode) => {
|
const createLabel = (_vertexText, style, isTitle, isNode) => {
|
||||||
let vertexText = _vertexText || '';
|
let vertexText = _vertexText ?? '';
|
||||||
if (typeof vertexText === 'object') {
|
if (typeof vertexText === 'object') {
|
||||||
vertexText = vertexText[0];
|
vertexText = vertexText[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user