Skip to content

Commit

Permalink
fix(core/forms): unable to create form instance if no validation cond…
Browse files Browse the repository at this point in the history
…ition has been defined
  • Loading branch information
trik committed Sep 27, 2021
1 parent f8d5105 commit 8031489
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {evaluateValidation} from './evaluate-validation';
export function evaluateValidationConditions(
validation: AjfValidationGroup, context?: AjfContext): AjfValidationResult[] {
let res: AjfValidationResult[] = [];
validation.conditions.forEach((cond) => {
(validation.conditions || []).forEach((cond) => {
res.push(evaluateValidation(cond, context));
});
return res;
Expand Down

0 comments on commit 8031489

Please sign in to comment.