mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: Fixes problem with data source variable when default ds is selected (#32384)
This commit is contained in:
@@ -69,6 +69,9 @@ export class DatasourceSrv implements DataSourceService {
|
||||
// The return name or uid needs preservet string containing the variable
|
||||
const clone = cloneDeep(dsSettings);
|
||||
clone.name = nameOrUid;
|
||||
// A data source being looked up using a variable should not be considered default
|
||||
clone.isDefault = false;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user