Revert "description field set comment ui fix"
This reverts commit fd5bcb3c08
.
This commit is contained in:
parent
ad1dc87115
commit
f7521e7589
|
@ -114,13 +114,9 @@ export class DescriptionFormFieldSetComponent extends BaseComponent {
|
||||||
|
|
||||||
deleteMultiplicityField(fieldSetIndex: number): void {
|
deleteMultiplicityField(fieldSetIndex: number): void {
|
||||||
const formArray = this.propertiesFormGroup.get('items') as UntypedFormArray;
|
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.removeAt(fieldSetIndex);
|
||||||
formArray.controls.forEach((fieldSet, index) => {
|
formArray.controls.forEach((fieldSet, index) => {
|
||||||
fieldSet.get('ordinal').setValue(index);
|
fieldSet.get('ordinal').setValue(index);
|
||||||
fieldSet.get('comment').setValue(comment);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//Reapply validators
|
//Reapply validators
|
||||||
|
|
Loading…
Reference in New Issue