chore: resolve eslint warnings in packages/mermaid/src/dagre-wrapper/createLabel.js

This commit is contained in:
Sidharth Vinod
2025-04-19 10:21:42 +05:30
parent ef7c0a1936
commit 134fca3f1d

View File

@@ -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];
}