description field set comment ui fix
This commit is contained in:
parent
9f22d3742a
commit
fd5bcb3c08
|
@ -114,9 +114,13 @@ export class DescriptionFormFieldSetComponent extends BaseComponent {
|
|||
|
||||
deleteMultiplicityField(fieldSetIndex: number): void {
|
||||
const formArray = this.propertiesFormGroup.get('items') as UntypedFormArray;
|
||||
const fieldSetToDelete = formArray.at(fieldSetIndex) as UntypedFormGroup;
|
||||
// store comment to display
|
||||
const comment = fieldSetToDelete.get('comment').value || null;
|
||||
formArray.removeAt(fieldSetIndex);
|
||||
formArray.controls.forEach((fieldSet, index) => {
|
||||
fieldSet.get('ordinal').setValue(index);
|
||||
fieldSet.get('comment').setValue(comment);
|
||||
});
|
||||
|
||||
//Reapply validators
|
||||
|
|
Loading…
Reference in New Issue