diff --git a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts index ff95bc1c1e6..ca7bc045f9c 100644 --- a/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts +++ b/packages/grafana-runtime/src/utils/DataSourceWithBackend.ts @@ -226,9 +226,6 @@ class DataSourceWithBackend< if (!(config.featureToggles.queryService || config.featureToggles.grafanaAPIServerWithExperimentalAPIs)) { console.warn('feature toggle queryServiceFromUI also requires the queryService to be running'); } else { - if (!hasExpr && dsUIDs.size === 1) { - // TODO? can we talk directly to the apiserver? - } url = `/apis/query.grafana.app/v0alpha1/namespaces/${config.namespace}/query?ds_type=${this.type}`; } }