[CST-4058] LGTM issues solved

This commit is contained in:
Davide Negretti
2021-09-10 10:50:35 +02:00
parent d66cf881fb
commit 8df8b1c574

View File

@@ -206,7 +206,7 @@ export class GroupFormComponent implements OnInit, OnDestroy {
if (linkedObject?.name) {
this.formBuilderService.insertFormGroupControl(1, this.formGroup, this.formModel, this.groupCommunity);
this.formGroup.patchValue({
groupName: activeGroup != null ? activeGroup.name : '',
groupName: activeGroup.name,
groupCommunity: linkedObject?.name ?? '',
groupDescription: activeGroup != null ? activeGroup.firstMetadataValue('dc.description') : '',
});
@@ -216,7 +216,7 @@ export class GroupFormComponent implements OnInit, OnDestroy {
this.groupDescription,
];
this.formGroup.patchValue({
groupName: activeGroup != null ? activeGroup.name : '',
groupName: activeGroup.name,
groupDescription: activeGroup != null ? activeGroup.firstMetadataValue('dc.description') : '',
});
}