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

This commit is contained in:
Torkel Ödegaard 2015-07-30 10:51:26 +02:00
parent be6ddb08bd
commit e108fecdd6

View File

@ -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++) {