Avoid error if borderOpts.dash is undefined (#11907)

This commit is contained in:
Moriwaki Masafumi 2024-10-13 10:14:07 +09:00 committed by GitHub
parent ea88dba68d
commit 5d2dfbe68d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();