mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
fix(datasource_srv): prevent infinite loop where default datasource is named default (#32949)
This commit is contained in:
parent
f97c056965
commit
b0470c84a5
@ -99,7 +99,7 @@ export class DatasourceSrv implements DataSourceService {
|
||||
// Interpolation here is to support template variable in data source selection
|
||||
nameOrUid = this.templateSrv.replace(nameOrUid, scopedVars, variableInterpolation);
|
||||
|
||||
if (nameOrUid === 'default') {
|
||||
if (nameOrUid === 'default' && this.defaultName !== 'default') {
|
||||
return this.get(this.defaultName);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user