Variables: Fix so data source variables are added to adhoc configuration (#43881) (#43953)

(cherry picked from commit 7f8f9eb814)

Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-01-12 12:19:56 +01:00
committed by GitHub
co-authored by Hugo Häggmark
parent 63064facdb
commit 6fe27c5274
@@ -111,7 +111,7 @@ export const changeVariableDatasource = (datasource?: DataSourceRef): ThunkResul
};
export const initAdHocVariableEditor = (): ThunkResult<void> => (dispatch) => {
const dataSources = getDatasourceSrv().getList({ metrics: true, variables: false });
const dataSources = getDatasourceSrv().getList({ metrics: true, variables: true });
const selectable = dataSources.reduce(
(all: Array<{ text: string; value: DataSourceRef | null }>, ds) => {
if (ds.meta.mixed) {