Skip to content

Commit 719b59b

Browse files
committed
feat: use strict
1 parent e37a002 commit 719b59b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/useForm.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,6 @@ export class FormStore {
921921
const { recursive, dirty } = options || {};
922922

923923
this.getFieldEntities(true).forEach((field: FieldEntity) => {
924-
if (field.isList()) {
925-
return;
926-
}
927924
// Add field if not provide `nameList`
928925
if (!provideNameList) {
929926
namePathList.push(field.getNamePath());
@@ -1003,7 +1000,7 @@ export class FormStore {
10031000
const returnPromise: Promise<Store | ValidateErrorEntity | string[]> = summaryPromise
10041001
.then((): Promise<Store | string[]> => {
10051002
if (this.lastValidatePromise === summaryPromise) {
1006-
return Promise.resolve(this.getFieldsValue(namePathList));
1003+
return Promise.resolve(this.getFieldsValue({ strict: true }));
10071004
}
10081005
return Promise.reject<string[]>([]);
10091006
})

0 commit comments

Comments
 (0)