mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-02 02:24:20 +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
|
||||
*/
|
||||
const createLabel = (_vertexText, style, isTitle, isNode) => {
|
||||
let vertexText = _vertexText || '';
|
||||
let vertexText = _vertexText ?? '';
|
||||
if (typeof vertexText === 'object') {
|
||||
vertexText = vertexText[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user