File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -911,6 +911,8 @@ export class FormStore {
911
911
? nameList . map ( getNamePath )
912
912
: [ ] ;
913
913
914
+ const removeListNameStrList : string [ ] = [ ] ;
915
+
914
916
// Collect result in promise list
915
917
const promiseList : Promise < FieldError > [ ] = [ ] ;
916
918
@@ -926,7 +928,7 @@ export class FormStore {
926
928
// Add field if not provide `nameList`
927
929
if ( ! provideNameList ) {
928
930
if ( field . isList ( ) && namePathList . some ( name => matchNamePath ( name , fieldNamePath , true ) ) ) {
929
- return ;
931
+ removeListNameStrList . push ( fieldNamePath . toString ( ) ) ;
930
932
}
931
933
namePathList . push ( fieldNamePath ) ;
932
934
}
@@ -1004,7 +1006,10 @@ export class FormStore {
1004
1006
const returnPromise : Promise < Store | ValidateErrorEntity | string [ ] > = summaryPromise
1005
1007
. then ( ( ) : Promise < Store | string [ ] > => {
1006
1008
if ( this . lastValidatePromise === summaryPromise ) {
1007
- return Promise . resolve ( this . getFieldsValue ( namePathList ) ) ;
1009
+ const filterListNameList = namePathList . filter (
1010
+ name => ! removeListNameStrList . some ( nameStr => nameStr === name . toString ( ) ) ,
1011
+ ) ;
1012
+ return Promise . resolve ( this . getFieldsValue ( filterListNameList ) ) ;
1008
1013
}
1009
1014
return Promise . reject < string [ ] > ( [ ] ) ;
1010
1015
} )
You can’t perform that action at this time.
0 commit comments