mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
heatmap: fix error with null values in ES converter (#7999)
This commit is contained in:
parent
f77f8ebfc6
commit
ecd404335e
@ -30,7 +30,12 @@ function convertEsSeriesToHeatmap(series: TimeSeries, saveZeroCounts = false) {
|
||||
_.forEach(series.datapoints, point => {
|
||||
let bound = series.alias;
|
||||
let count = point[VALUE_INDEX];
|
||||
let values = new Array(count);
|
||||
|
||||
if (!count) {
|
||||
return;
|
||||
}
|
||||
|
||||
let values = new Array(Math.round(count));
|
||||
values.fill(Number(bound));
|
||||
|
||||
let valueBuckets = {};
|
||||
|
Loading…
Reference in New Issue
Block a user