mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added scopedVars argument in datasourceSrv.get in DataPanel
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user