diff --git a/public/app/plugins/panel/heatmap/utils.ts b/public/app/plugins/panel/heatmap/utils.ts index d5d09e238c186..ec74f786f8ce0 100644 --- a/public/app/plugins/panel/heatmap/utils.ts +++ b/public/app/plugins/panel/heatmap/utils.ts @@ -722,6 +722,15 @@ export function heatmapPathsDense(opts: PathbuilderOpts) { let cx = cxs[~~(i / yBinQty)]; let cy = cys[i % yBinQty]; + if ( + fills === undefined || + fills[i] === undefined || + fillPaths === undefined || + fillPaths[fills[i]] === undefined + ) { + continue; + } + let fillPath = fillPaths[fills[i]]; rect(fillPath, cx, cy, xSize, ySize);