mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
style(influxdb): improve naming
This commit is contained in:
@@ -12,13 +12,13 @@ export default class ResponseParser {
|
||||
return [];
|
||||
}
|
||||
|
||||
var newInfluxdbFormat = query.toLowerCase().indexOf('show tag values') >= 0;
|
||||
var influxdb11format = query.toLowerCase().indexOf('show tag values') >= 0;
|
||||
|
||||
var res = {};
|
||||
_.each(influxResults.series, serie => {
|
||||
_.each(serie.values, value => {
|
||||
if (_.isArray(value)) {
|
||||
if (newInfluxdbFormat) {
|
||||
if (influxdb11format) {
|
||||
addUnique(res, value[1] || value[0]);
|
||||
} else {
|
||||
addUnique(res, value[0]);
|
||||
|
||||
Reference in New Issue
Block a user