Skip to content

Commit

Permalink
fix(core/forms): change NotEmpty validation to check also for empty s…
Browse files Browse the repository at this point in the history
…tring
  • Loading branch information
sara-re authored and peppedeka committed Apr 15, 2021
1 parent 95d6998 commit 3e6d118
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function evaluateValidationNotEmpty(
const ctx = {'$value': value};
if (typeof validation.notEmpty === 'boolean') {
return {
result: evaluateExpression(`($value != null) === ${validation.notEmpty}`, ctx),
result: evaluateExpression(`notEmpty($value) === ${validation.notEmpty}`, ctx),
error: 'Value must not be empty',
clientValidation: false
};
Expand Down

0 comments on commit 3e6d118

Please sign in to comment.