mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
make interpolateVariable arrow function
This commit is contained in:
parent
c4452ba335
commit
215ca50cc1
@ -18,7 +18,7 @@ export class MysqlDatasource {
|
|||||||
this.interval = (instanceSettings.jsonData || {}).timeInterval;
|
this.interval = (instanceSettings.jsonData || {}).timeInterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
interpolateVariable(value, variable) {
|
interpolateVariable = (value, variable) => {
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
if (variable.multi || variable.includeAll) {
|
if (variable.multi || variable.includeAll) {
|
||||||
return this.queryModel.quoteLiteral(value);
|
return this.queryModel.quoteLiteral(value);
|
||||||
@ -35,7 +35,7 @@ export class MysqlDatasource {
|
|||||||
return this.queryModel.quoteLiteral(v);
|
return this.queryModel.quoteLiteral(v);
|
||||||
});
|
});
|
||||||
return quotedValues.join(',');
|
return quotedValues.join(',');
|
||||||
}
|
};
|
||||||
|
|
||||||
query(options) {
|
query(options) {
|
||||||
const queries = _.filter(options.targets, target => {
|
const queries = _.filter(options.targets, target => {
|
||||||
|
Loading…
Reference in New Issue
Block a user