chore: resolve eslint warnings in packages/mermaid/src/diagrams/block/renderHelpers.ts

This commit is contained in:
Sidharth Vinod
2025-04-19 10:21:44 +05:30
parent b49036068f
commit 5e20087252

View File

@@ -10,7 +10,7 @@ function getNodeFromBlock(block: Block, db: BlockDB, positioned = false) {
const vertex = block;
let classStr = 'default';
if ((vertex?.classes?.length || 0) > 0) {
if ((vertex?.classes?.length ?? 0) > 0) {
classStr = (vertex?.classes ?? []).join(' ');
}
classStr = classStr + ' flowchart-label';