Added scopedVars argument in datasourceSrv.get in DataPanel

This commit is contained in:
Torkel Ödegaard
2019-03-11 18:36:49 +01:00
parent bf72b26c2c
commit aeb3553491
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ export class DatasourceSrv {
return this.get(config.defaultDatasource);
}
// Interpolation here is to support template variable in data source selection
name = this.templateSrv.replace(name, scopedVars, (value, variable) => {
if (Array.isArray(value)) {
return value[0];