From db6b71a27b1bea0e17464e98a514ac9a5d901764 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Mon, 29 Nov 2021 17:57:58 +0100 Subject: [PATCH] Alerting: fix broken datasource link (#42468) --- .../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 && (