From 185669f04d34e2642c091740fa6305f93576ebba Mon Sep 17 00:00:00 2001 From: shaojinyu <1009943858@qq.com> Date: Fri, 20 Dec 2024 17:06:30 +0800 Subject: [PATCH] fix: merge errorSchema --- packages/core/src/components/Form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/Form.tsx b/packages/core/src/components/Form.tsx index 3e505c2def..293c4d2812 100644 --- a/packages/core/src/components/Form.tsx +++ b/packages/core/src/components/Form.tsx @@ -470,7 +470,7 @@ export default class Form< : undefined; errors = currentErrors.errors; errorSchema = newErrorSchema - ? (mergeObjects(newErrorSchema, newErrorSchema, 'preventDuplicates') as ErrorSchema) + ? (mergeObjects(currentErrors.errorSchema, newErrorSchema, 'preventDuplicates') as ErrorSchema) : currentErrors.errorSchema; } if (props.extraErrors) {