Revert "description field set comment ui fix"

This reverts commit fd5bcb3c08.
This commit is contained in:
CITE\amentis 2024-10-04 17:02:34 +03:00
parent ad1dc87115
commit f7521e7589
1 changed files with 0 additions and 4 deletions

View File

@ -114,13 +114,9 @@ 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