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

This commit is contained in:
Hugo Häggmark 2022-01-12 12:05:42 +01:00 committed by GitHub
parent 0fd8f5de44
commit 7f8f9eb814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,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) {