File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -910,7 +910,8 @@ export class FormStore {
910
910
const namePathList : InternalNamePath [ ] | undefined = provideNameList
911
911
? nameList . map ( getNamePath )
912
912
: [ ] ;
913
- const noListNamePathList = [ ...namePathList ] ;
913
+
914
+ const finalValueNamePathList = [ ...namePathList ] ;
914
915
915
916
// Collect result in promise list
916
917
const promiseList : Promise < FieldError > [ ] = [ ] ;
@@ -930,7 +931,7 @@ export class FormStore {
930
931
// When Form.List has a value, filter Form.List `name`
931
932
! ( field . isList ( ) && namePathList . some ( name => matchNamePath ( name , fieldNamePath , true ) ) )
932
933
) {
933
- noListNamePathList . push ( fieldNamePath ) ;
934
+ finalValueNamePathList . push ( fieldNamePath ) ;
934
935
}
935
936
namePathList . push ( fieldNamePath ) ;
936
937
}
@@ -1008,7 +1009,7 @@ export class FormStore {
1008
1009
const returnPromise : Promise < Store | ValidateErrorEntity | string [ ] > = summaryPromise
1009
1010
. then ( ( ) : Promise < Store | string [ ] > => {
1010
1011
if ( this . lastValidatePromise === summaryPromise ) {
1011
- return Promise . resolve ( this . getFieldsValue ( noListNamePathList ) ) ;
1012
+ return Promise . resolve ( this . getFieldsValue ( finalValueNamePathList ) ) ;
1012
1013
}
1013
1014
return Promise . reject < string [ ] > ( [ ] ) ;
1014
1015
} )
You can’t perform that action at this time.
0 commit comments