File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ export class FormComponent implements OnDestroy, OnInit {
232232 }
233233
234234 if ( field ) {
235- const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel ) ;
235+ const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel , fieldIndex ) ;
236236 this . formService . addErrorToField ( field , model , error . message ) ;
237237 this . changeDetectorRef . detectChanges ( ) ;
238238
@@ -255,7 +255,7 @@ export class FormComponent implements OnDestroy, OnInit {
255255 }
256256
257257 if ( field ) {
258- const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel ) ;
258+ const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel , fieldIndex ) ;
259259 this . formService . removeErrorFromField ( field , model , error . message ) ;
260260 }
261261 } ) ;
You can’t perform that action at this time.
0 commit comments