From 815a38c1308d528de0c53198fd24723cd22b3545 Mon Sep 17 00:00:00 2001 From: David Sanchez Soler Date: Wed, 3 Nov 2021 15:46:00 +0100 Subject: [PATCH] Fix warning when setting description to undefined --- .../artifact_entry_card/components/criteria_conditions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/public/management/components/artifact_entry_card/components/criteria_conditions.tsx b/x-pack/plugins/security_solution/public/management/components/artifact_entry_card/components/criteria_conditions.tsx index 24244aad3ef99..048b79c354803 100644 --- a/x-pack/plugins/security_solution/public/management/components/artifact_entry_card/components/criteria_conditions.tsx +++ b/x-pack/plugins/security_solution/public/management/components/artifact_entry_card/components/criteria_conditions.tsx @@ -89,7 +89,7 @@ export const CriteriaConditions = memo( }; const getEntryOperator = (type: string, operator: string) => { - if (type === 'nested') return; + if (type === 'nested') return ''; return operator === 'included' ? OPERATOR_TYPE_LABELS_INCLUDED[type as keyof typeof OPERATOR_TYPE_LABELS_INCLUDED] ?? type : OPERATOR_TYPE_LABELS_EXCLUDED[type as keyof typeof OPERATOR_TYPE_LABELS_EXCLUDED] ?? type;