Skip to content

Commit

Permalink
Fix warning when setting description to undefined (#117338)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
dasansol92 and kibanamachine authored Nov 5, 2021
1 parent 60340b5 commit a2296c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const CriteriaConditions = memo<CriteriaConditionsProps>(
};

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;
Expand Down

0 comments on commit a2296c5

Please sign in to comment.