From aabb4286e392f3582f9bfe616ca371589568a8de Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Mon, 15 Jul 2024 11:27:32 +0200 Subject: [PATCH] Correlations: Fix wrong target data source name in the form (#90340) --- .../correlations/Forms/ConfigureCorrelationSourceForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/correlations/Forms/ConfigureCorrelationSourceForm.tsx b/public/app/features/correlations/Forms/ConfigureCorrelationSourceForm.tsx index 51bedf03b7b..4c9b32067b1 100644 --- a/public/app/features/correlations/Forms/ConfigureCorrelationSourceForm.tsx +++ b/public/app/features/correlations/Forms/ConfigureCorrelationSourceForm.tsx @@ -49,7 +49,7 @@ export const ConfigureCorrelationSourceForm = () => { ); } - const dataSourceName = getDatasourceSrv().getInstanceSettings(correlation?.targetUID)?.name; + const dataSourceName = getDatasourceSrv().getInstanceSettings(getValues('targetUID'))?.name; return ( <>