diff --git a/src/datasource/datasource.ts b/src/datasource/datasource.ts index 9dd5bf33b..d50aa73b8 100644 --- a/src/datasource/datasource.ts +++ b/src/datasource/datasource.ts @@ -416,7 +416,7 @@ export createQuery(options: any, target: any) { const queryModel = new SqlQuery(target, this.templateSrv, options); // @ts-ignore - const adhocFilters = getAdhocFilters(this.adHocFilter?.datasource?.name || 'clickhouse',this.uid ) + const adhocFilters = getAdhocFilters(this.adHocFilter?.datasource?.name,this.uid ) const stmt = queryModel.replace(options, adhocFilters); let keys = [];