Skip to content

Commit

Permalink
Fix regression for repeatable groups validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscoder committed Dec 3, 2024
1 parent 954ac50 commit 5116085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/questionnaire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function questionnaireItemsToValidationSchema(questionnaireItems: Questio
} else {
validationSchema[item.linkId] = schema;

if (item.item) {
if (item.item && !item.repeats) {
validationSchema[item.linkId] = yup
.object({ items: questionnaireItemsToValidationSchema(item.item) })
.required();
Expand Down

0 comments on commit 5116085

Please sign in to comment.