Skip to content

Commit

Permalink
reset questionnaire errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobjeevan committed Jan 25, 2025
1 parent 30e057d commit 38bd3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Questionnaire/QuestionnaireForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export function QuestionnaireForm({
setQuestionnaireForms((existingForms) =>
existingForms.map((formItem) =>
formItem.questionnaire.id === form.questionnaire.id
? { ...formItem, responses }
? { ...formItem, responses, errors: [] }
: formItem,
),
);
Expand Down

0 comments on commit 38bd3a7

Please sign in to comment.