Skip to content

Commit

Permalink
refactor(types): assert insertNode returns non-empty
Browse files Browse the repository at this point in the history
Fixes: 7401cb8
  • Loading branch information
aloisklink committed Oct 30, 2024
1 parent a381ab6 commit 143806b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/kanban/kanbanRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const draw: DrawDefinition = async (text, id, _version, diagObj) => {
item.x = section.x;
item.width = WIDTH - 1.5 * padding;
const nodeEl = await insertNode(nodesElem, item, { config: conf });
const bbox = nodeEl.node().getBBox();
const bbox = nodeEl.node()!.getBBox();
item.y = y + bbox.height / 2;
await positionNode(item);
y = item.y + bbox.height / 2 + padding / 2;
Expand Down

0 comments on commit 143806b

Please sign in to comment.