Skip to content

Commit 5d2dfbe

Browse files
authored
Avoid error if borderOpts.dash is undefined (#11907)
1 parent ea88dba commit 5d2dfbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scales/scale.radialLinear.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function drawRadiusLine(scale, gridLineOpts, radius, labelCount, borderOpts) {
317317
ctx.save();
318318
ctx.strokeStyle = color;
319319
ctx.lineWidth = lineWidth;
320-
ctx.setLineDash(borderOpts.dash);
320+
ctx.setLineDash(borderOpts.dash || []);
321321
ctx.lineDashOffset = borderOpts.dashOffset;
322322

323323
ctx.beginPath();

0 commit comments

Comments
 (0)