DS apiserver: Minor fixes (#84691)

This commit is contained in:
Marcus Efraimsson
2024-03-19 09:02:52 +01:00
committed by GitHub
parent 58170d4141
commit e978d0810e
2 changed files with 13 additions and 2 deletions
@@ -69,6 +69,7 @@ func (r *subQueryREST) Connect(ctx context.Context, name string, opts runtime.Ob
}
if dsRef != nil && dsRef.UID != name {
responder.Error(fmt.Errorf("expected query body datasource and request to match"))
return
}
ctx = backend.WithGrafanaConfig(ctx, pluginCtx.GrafanaConfig)