From 9d61dcb02b9a21a7cbd12bc25d75b2c7792f7908 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Fri, 25 Feb 2022 11:17:28 +0100 Subject: [PATCH] Alerting: Disable Alertmanager picker if there's only one Alertmanager (#45781) --- .../alerting/unified/components/AlertManagerPicker.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/public/app/features/alerting/unified/components/AlertManagerPicker.tsx b/public/app/features/alerting/unified/components/AlertManagerPicker.tsx index 01f91871397..782a7b8346b 100644 --- a/public/app/features/alerting/unified/components/AlertManagerPicker.tsx +++ b/public/app/features/alerting/unified/components/AlertManagerPicker.tsx @@ -33,16 +33,11 @@ export const AlertManagerPicker: FC = ({ onChange, current, disabled = fa ]; }, []); - // no need to show the picker if there's only one option - if (options.length === 1) { - return null; - } - return (