Skip to content

Commit

Permalink
Avoid error if borderOpts.dash is undefined (#11907)
Browse files Browse the repository at this point in the history
  • Loading branch information
HieroglypH authored Oct 13, 2024
1 parent ea88dba commit 5d2dfbe
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 5d2dfbe

Please sign in to comment.