Skip to content

Commit 1b0a6bb

Browse files
committed
more robust no-gradient-object fallback
1 parent a074259 commit 1b0a6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/drawing/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ function singlePointStyle(d, sel, trace, markerScale, lineScale, marker, markerL
276276

277277
var markerGradient = marker.gradient;
278278
var gradientColor = markerGradient && (d.mgc || markerGradient.color);
279-
var gradientType = d.mgt || markerGradient.type;
279+
var gradientType = markerGradient && (d.mgt || markerGradient.type);
280280
if(gradientType && gradientType !== 'none') {
281281
sel.call(drawing.gradient, gd, gradientType, fillColor, gradientColor);
282282
}

0 commit comments

Comments
 (0)