File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ function getItemsFromProps(props: RowSetterProps, state?: RowSetterState) {
6060 const items : IPublicModelSettingField [ ] = [ ] ;
6161 if ( columns && config ?. items ) {
6262 const l = Math . min ( config . items . length , columns ) ;
63- for ( let i = 0 ; i < l ; i ++ ) {
63+ for ( let i = 0 ; i < config . items . length ; i ++ ) {
6464 const conf = config . items [ i ] ;
6565 if ( conf . isRequired || conf . important || ( conf . setter as any ) ?. isRequired ) {
6666 const item = state ?. items ?. filter ( d => d . name === conf . name ) ?. [ 0 ] || field . createField ( {
@@ -77,6 +77,9 @@ function getItemsFromProps(props: RowSetterProps, state?: RowSetterState) {
7777 } ;
7878 items . push ( item ) ;
7979 }
80+ if ( items . length >= l ) {
81+ break ;
82+ }
8083 }
8184 }
8285 return items ;
You can’t perform that action at this time.
0 commit comments