Skip to content

Commit

Permalink
fix: check for nullish when rendering graph control value
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnsgn committed Nov 22, 2024
1 parent 94806cd commit 6e5c7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderers/CanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ class CanvasRenderer {
ctx.stroke();

ctx.fillText(
`${item.title}: ${item.values[item.values.length - 1] || ""}`,
`${item.title}: ${item.values[item.values.length - 1] ?? ""}`,
x + textPadding,
dy + textY,
);
Expand Down

0 comments on commit 6e5c7bb

Please sign in to comment.