mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
intermediate commit
This commit is contained in:
@@ -295,7 +295,7 @@ export class FormComponent implements OnDestroy, OnInit {
|
||||
removeItem($event, arrayContext: DynamicFormArrayModel, index: number): void {
|
||||
console.log(arrayContext, index);
|
||||
const formArrayControl = this.formGroup.get(this.formBuilderService.getPath(arrayContext)) as FormArray;
|
||||
this.removeArrayItem.emit(this.getEvent($event, arrayContext, index, 'remove'));
|
||||
this.removeArrayItem.emit(this.getEvent($event, arrayContext, index - 1, 'remove'));
|
||||
this.formBuilderService.removeFormArrayGroup(index, formArrayControl, arrayContext);
|
||||
this.formService.changeForm(this.formId, this.formModel);
|
||||
}
|
||||
|
Reference in New Issue
Block a user