Skip to content

Commit c6c2c2f

Browse files
committed
Fix sentry heatmap crash
1 parent 10beaa2 commit c6c2c2f

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
@@ -722,6 +722,15 @@ export function heatmapPathsDense(opts: PathbuilderOpts) {
722722
let cx = cxs[~~(i / yBinQty)];
723723
let cy = cys[i % yBinQty];
724724

725+
if (
726+
fills === undefined ||
727+
fills[i] === undefined ||
728+
fillPaths === undefined ||
729+
fillPaths[fills[i]] === undefined
730+
) {
731+
continue;
732+
}
733+
725734
let fillPath = fillPaths[fills[i]];
726735

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

0 commit comments

Comments
 (0)