From 88210f1c1a3bc0d263f4f31c3bcfdacd5808f6d0 Mon Sep 17 00:00:00 2001 From: Yara Tercero Date: Sat, 14 Mar 2020 23:46:55 -0400 Subject: [PATCH] updated helper to the more concise version suggested by frank --- .../rules/components/description_step/helpers.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx b/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx index 410ff00a9f696..1aeff1d2e86ff 100644 --- a/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx +++ b/x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx @@ -33,8 +33,7 @@ const NoteDescriptionContainer = styled(EuiFlexItem)` overflow-y: hidden; `; -export const isNotEmptyArray = (values: string[]) => - !isEmpty(values) && values.filter(val => !isEmpty(val)).length > 0; +export const isNotEmptyArray = (values: string[]) => !isEmpty(values.join('')); const EuiBadgeWrap = styled(EuiBadge)` .euiBadge__text {