From 90dedf4f50234137e1559a81d2d7a8093cd05bf1 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 29 Nov 2021 12:18:57 -0500 Subject: [PATCH] Alerting: fix broken datasource link (#42468) (#42469) (cherry picked from commit db6b71a27b1bea0e17464e98a514ac9a5d901764) Co-authored-by: Gilles De Mey --- .../unified/components/rules/RuleDetailsActionButtons.tsx | 3 ++- .../alerting/unified/components/rules/RuleListErrors.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/app/features/alerting/unified/components/rules/RuleDetailsActionButtons.tsx b/public/app/features/alerting/unified/components/rules/RuleDetailsActionButtons.tsx index d5d24b02fa8..b1c0f7449c2 100644 --- a/public/app/features/alerting/unified/components/rules/RuleDetailsActionButtons.tsx +++ b/public/app/features/alerting/unified/components/rules/RuleDetailsActionButtons.tsx @@ -115,7 +115,7 @@ export const RuleDetailsActionButtons: FC = ({ rule, rulesSource }) => { = ({ rule, rulesSource }) => { if (isViewMode) { rightButtons.push( { appEvents.emit(AppEvents.alertSuccess, ['URL copied!']); }} diff --git a/public/app/features/alerting/unified/components/rules/RuleListErrors.tsx b/public/app/features/alerting/unified/components/rules/RuleListErrors.tsx index c94594442cc..12517fb42bc 100644 --- a/public/app/features/alerting/unified/components/rules/RuleListErrors.tsx +++ b/public/app/features/alerting/unified/components/rules/RuleListErrors.tsx @@ -52,7 +52,7 @@ export function RuleListErrors(): ReactElement { rulerRequestErrors.forEach(({ dataSource, error }) => result.push( <> - Failed to load rules config from {dataSource.name}:{' '} + Failed to load rules config from {dataSource.name}:{' '} {error.message || 'Unknown error.'} ) @@ -77,7 +77,7 @@ export function RuleListErrors(): ReactElement { {errors.length >= 2 && (