mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
fix(influxdb): fixed issue with empty influxdb result object, fixes #2294
This commit is contained in:
parent
be6ddb08bd
commit
e108fecdd6
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user