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 @@ -190,7 +190,7 @@ export class FormComponent implements OnDestroy, OnInit {
190190 }
191191
192192 if ( field ) {
193- const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel ) ;
193+ const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel , fieldIndex ) ;
194194 this . formService . addErrorToField ( field , model , error . message ) ;
195195 this . changeDetectorRef . detectChanges ( ) ;
196196
@@ -213,7 +213,7 @@ export class FormComponent implements OnDestroy, OnInit {
213213 }
214214
215215 if ( field ) {
216- const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel ) ;
216+ const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel , fieldIndex ) ;
217217 this . formService . removeErrorFromField ( field , model , error . message ) ;
218218 }
219219 } ) ;
You can’t perform that action at this time.
0 commit comments