Commit aa62c2ef by Sebastian Borza

Force the query check to lowercase for tag values, fix issue with templating influxdb v0.11.0

parent 04d142cd
......@@ -15,7 +15,7 @@ export default class ResponseParser {
var series = influxResults.series[0];
return _.map(series.values, (value) => {
if (_.isArray(value)) {
if (query.indexOf('SHOW TAG VALUES') >= 0) {
if (query.toLowerCase().indexOf('show tag values') >= 0) {
return { text: (value[1] || value[0]) };
} else {
return { text: value[0] };
......
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