Skip to content

Commit

Permalink
Avoid error if borderOpts.dash is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
HieroglypH committed Sep 24, 2024
1 parent ea88dba commit 2317271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scales/scale.radialLinear.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function drawRadiusLine(scale, gridLineOpts, radius, labelCount, borderOpts) {
ctx.save();
ctx.strokeStyle = color;
ctx.lineWidth = lineWidth;
ctx.setLineDash(borderOpts.dash);
ctx.setLineDash(borderOpts.dash || []);
ctx.lineDashOffset = borderOpts.dashOffset;

ctx.beginPath();
Expand Down

0 comments on commit 2317271

Please sign in to comment.