Skip to content

Commit 143806b

Browse files
committed
refactor(types): assert insertNode returns non-empty
Fixes: 7401cb8
1 parent a381ab6 commit 143806b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mermaid/src/diagrams/kanban/kanbanRenderer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const draw: DrawDefinition = async (text, id, _version, diagObj) => {
6363
item.x = section.x;
6464
item.width = WIDTH - 1.5 * padding;
6565
const nodeEl = await insertNode(nodesElem, item, { config: conf });
66-
const bbox = nodeEl.node().getBBox();
66+
const bbox = nodeEl.node()!.getBBox();
6767
item.y = y + bbox.height / 2;
6868
await positionNode(item);
6969
y = item.y + bbox.height / 2 + padding / 2;

0 commit comments

Comments
 (0)