From 2317271c540c65abd0515c51ffe8ac2f269eee3f Mon Sep 17 00:00:00 2001 From: Moriwaki Masafumi Date: Wed, 25 Sep 2024 03:46:54 +0900 Subject: [PATCH] Avoid error if borderOpts.dash is undefined --- src/scales/scale.radialLinear.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scales/scale.radialLinear.js b/src/scales/scale.radialLinear.js index 642fa1c140f..0a2c61f722b 100644 --- a/src/scales/scale.radialLinear.js +++ b/src/scales/scale.radialLinear.js @@ -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();