Skip to content

Commit

Permalink
fix: merge errorSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
JinYuSha0 committed Dec 20, 2024
1 parent 00559e1 commit 185669f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export default class Form<
: undefined;
errors = currentErrors.errors;
errorSchema = newErrorSchema
? (mergeObjects(newErrorSchema, newErrorSchema, 'preventDuplicates') as ErrorSchema<T>)
? (mergeObjects(currentErrors.errorSchema, newErrorSchema, 'preventDuplicates') as ErrorSchema<T>)
: currentErrors.errorSchema;
}
if (props.extraErrors) {
Expand Down

0 comments on commit 185669f

Please # to comment.