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 @@ -236,7 +236,7 @@ export class FormComponent implements OnDestroy, OnInit {
236236 }
237237
238238 if ( field ) {
239- const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel ) ;
239+ const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel , fieldIndex ) ;
240240 this . formService . addErrorToField ( field , model , error . message ) ;
241241 this . changeDetectorRef . detectChanges ( ) ;
242242
@@ -259,7 +259,7 @@ export class FormComponent implements OnDestroy, OnInit {
259259 }
260260
261261 if ( field ) {
262- const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel ) ;
262+ const model : DynamicFormControlModel = this . formBuilderService . findById ( fieldId , formModel , fieldIndex ) ;
263263 this . formService . removeErrorFromField ( field , model , error . message ) ;
264264 }
265265 } ) ;
You can’t perform that action at this time.
0 commit comments