mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
changed var to const 2 (#13068)
* changed var to const * fixed typo created in last commit * added or empty object to options in prometheus/datasource
This commit is contained in:
committed by
Torkel Ödegaard
parent
5e0d0c5816
commit
a702603e7b
@@ -6,16 +6,16 @@ export default class ResponseParser {
|
||||
return [];
|
||||
}
|
||||
|
||||
var influxResults = results.results[0];
|
||||
const influxResults = results.results[0];
|
||||
if (!influxResults.series) {
|
||||
return [];
|
||||
}
|
||||
|
||||
var normalizedQuery = query.toLowerCase();
|
||||
var isValueFirst =
|
||||
const normalizedQuery = query.toLowerCase();
|
||||
const isValueFirst =
|
||||
normalizedQuery.indexOf('show field keys') >= 0 || normalizedQuery.indexOf('show retention policies') >= 0;
|
||||
|
||||
var res = {};
|
||||
const res = {};
|
||||
_.each(influxResults.series, serie => {
|
||||
_.each(serie.values, value => {
|
||||
if (_.isArray(value)) {
|
||||
|
||||
Reference in New Issue
Block a user