Commit 8d185bb5841c83eb49c78e8342e65067aa6f9b80
1 parent
27207a78
fix(form): remove console error for `setFieldsValue`
移除setFieldsValue方法输出的控制台错误 fixed: #952
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Form/src/hooks/useFormEvents.ts
@@ -84,7 +84,7 @@ export function useFormEvents({ | @@ -84,7 +84,7 @@ export function useFormEvents({ | ||
84 | validKeys.push(key); | 84 | validKeys.push(key); |
85 | } | 85 | } |
86 | }); | 86 | }); |
87 | - validateFields(validKeys); | 87 | + validateFields(validKeys).catch((_) => {}); |
88 | } | 88 | } |
89 | /** | 89 | /** |
90 | * @description: Delete based on field name | 90 | * @description: Delete based on field name |