Skip to content

Commit a2883dd

Browse files
Spikatrixgurinder39
authored andcommitted
Fix sentry heatmap crash (#168)
Co-authored-by: Gurinder Singh <[email protected]>
1 parent 83184f2 commit a2883dd

File tree

1 file changed

+9
-0
lines changed
  • public/app/plugins/panel/heatmap

1 file changed

+9
-0
lines changed

public/app/plugins/panel/heatmap/utils.ts

+9
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,15 @@ export function heatmapPathsDense(opts: PathbuilderOpts) {
601601
let cx = cxs[~~(i / yBinQty)];
602602
let cy = cys[i % yBinQty];
603603

604+
if (
605+
fills === undefined ||
606+
fills[i] === undefined ||
607+
fillPaths === undefined ||
608+
fillPaths[fills[i]] === undefined
609+
) {
610+
continue;
611+
}
612+
604613
let fillPath = fillPaths[fills[i]];
605614

606615
rect(fillPath, cx, cy, xSize, ySize);

0 commit comments

Comments
 (0)