mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InfluxDB: Fix handling of empty array in templating variable query, Fixes #1298
This commit is contained in:
parent
d4c3463f68
commit
63fa9f4535
@ -4,6 +4,9 @@
|
||||
- [Issue #1297](https://github.com/grafana/grafana/issues/1297). Graphite: Added cumulative and minimumBelow graphite functions
|
||||
- [Issue #1296](https://github.com/grafana/grafana/issues/1296). InfluxDB: Auto escape column names with special characters. Thanks @steven-aerts
|
||||
|
||||
**Fixes**
|
||||
- [Issue #1298](https://github.com/grafana/grafana/issues/1298). InfluxDB: Fix handling of empty array in templating variable query
|
||||
|
||||
# 1.9.1 (2014-12-29)
|
||||
|
||||
**Enhancements**
|
||||
|
@ -117,6 +117,8 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
|
||||
|
||||
return this._seriesQuery(interpolated)
|
||||
.then(function (results) {
|
||||
if (!results || results.length === 0) { return []; }
|
||||
|
||||
return _.map(results[0].points, function (metric) {
|
||||
return {
|
||||
text: metric[1],
|
||||
|
Loading…
Reference in New Issue
Block a user