Procházet zdrojové kódy

fix(influxdb_09): fix for handling empty series object in response from influxdb, fixes #2413

Torkel Ödegaard před 10 roky
rodič
revize
48686cf9f7

+ 1 - 0
CHANGELOG.md

@@ -11,6 +11,7 @@ it allows you to add queries of differnet data source types & instances to the s
 - [Issue #1186](https://github.com/grafana/grafana/issues/1186). Time Picker: New option `today`, will set time range from midnight to now
 
 **Fixes**
+- [Issue #2413](https://github.com/grafana/grafana/issues/2413). InfluxDB 0.9: Fix for handling empty series object in response from influxdb
 - [Issue #2574](https://github.com/grafana/grafana/issues/2574). Snapshot: Fix for snapshot with expire 7 days option, 7 days option not correct, was 7 hours
 - [Issue #2568](https://github.com/grafana/grafana/issues/2568). AuthProxy: Fix for server side rendering of panel when using auth proxy
 - [Issue #2490](https://github.com/grafana/grafana/issues/2490). Graphite: Dashboard import was broken in 2.1 and 2.1.1, working now

+ 1 - 1
public/app/plugins/datasource/influxdb/datasource.js

@@ -52,7 +52,7 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
       // replace templated variables
       allQueries = templateSrv.replace(allQueries, options.scopedVars);
       return this._seriesQuery(allQueries).then(function(data) {
-        if (!data || !data.results || !data.results[0].series) {
+        if (!data || !data.results) {
           return [];
         }