From 94e726f51ab6d7458d7c043ce89bd29e0c6702e8 Mon Sep 17 00:00:00 2001 From: Ding <64894484+Now-Sprouting@users.noreply.github.com> Date: Thu, 6 Jul 2023 16:06:54 +0800 Subject: [PATCH] fix: getFieldsValue method only retrieves the fields that exist in the template --- src/useForm.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/useForm.ts b/src/useForm.ts index 3558f4b59..10ae6e43e 100644 --- a/src/useForm.ts +++ b/src/useForm.ts @@ -281,9 +281,7 @@ export class FormStore { const namePath = 'INVALIDATE_NAME_PATH' in entity ? entity.INVALIDATE_NAME_PATH : entity.getNamePath(); - // Ignore when it's a list item and not specific the namePath, - // since parent field is already take in count - if (!nameList && (entity as FieldEntity).isListField?.()) { + if (!nameList && (entity as FieldEntity).isList?.()) { return; }