Skip to content

Commit

Permalink
another null check
Browse files Browse the repository at this point in the history
  • Loading branch information
mitodrummer committed May 15, 2023
1 parent 75b44f5 commit c6a1273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/cloud_defend/public/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function validateStringValuesForCondition(condition: SelectorCondition, v
const { pattern, patternError } = SelectorConditionsMap[condition];

values?.forEach((value) => {
if (value.length === 0) {
if (value?.length === 0) {
errors.push(
i18n.translate('xpack.cloudDefend.errorGenericEmptyValue', {
defaultMessage: '"{condition}" values cannot be empty',
Expand Down

0 comments on commit c6a1273

Please sign in to comment.