From 958adc57af4253aa510101b568638028c7f923d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Marcondes?= <55978943+cauemarcondes@users.noreply.github.com> Date: Wed, 8 Sep 2021 15:23:52 -0400 Subject: [PATCH] [APM] Bug with Transaction Latency Threshold rule (#111541) --- x-pack/plugins/apm/public/components/alerting/fields.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/apm/public/components/alerting/fields.tsx b/x-pack/plugins/apm/public/components/alerting/fields.tsx index 8480fd276cb7..e48263515236 100644 --- a/x-pack/plugins/apm/public/components/alerting/fields.tsx +++ b/x-pack/plugins/apm/public/components/alerting/fields.tsx @@ -42,10 +42,13 @@ export function EnvironmentField({ const title = i18n.translate('xpack.apm.alerting.fields.environment', { defaultMessage: 'Environment', }); - - // "1" means "All" is the only option and we should not show a select. if (options.length === 1) { - return ; + return ( + + ); } return (