Commit e108fecd by Torkel Ödegaard

fix(influxdb): fixed issue with empty influxdb result object, fixes #2294

parent be6ddb08
......@@ -57,6 +57,9 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
var seriesList = [];
for (i = 0; i < data.results.length; i++) {
var result = data.results[i];
if (!result || !result.series) { continue; }
var alias = (options.targets[i] || {}).alias;
var targetSeries = new InfluxSeries({ series: data.results[i].series, alias: alias }).getTimeSeries();
for (y = 0; y < targetSeries.length; y++) {
......
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