Commit ecd40433 by Alexander Zobnin Committed by Torkel Ödegaard

heatmap: fix error with null values in ES converter (#7999)

parent f77f8ebf
......@@ -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 = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment