mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Avoid error if borderOpts.dash is undefined (#11907)
This commit is contained in:
parent
ea88dba68d
commit
5d2dfbe68d
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user