|
|
|
@ -280,7 +280,11 @@ export class EntityDetailsPanelComponent extends PageComponent implements OnInit |
|
|
|
|
|
|
|
saveEntity() { |
|
|
|
if (this.detailsForm.valid) { |
|
|
|
const editingEntity = mergeDeep(this.editingEntity, this.entityComponent.entityFormValue()); |
|
|
|
const editingEntity = {...this.editingEntity, ...this.entityComponent.entityFormValue()}; |
|
|
|
if (this.editingEntity.hasOwnProperty('additionalInfo')) { |
|
|
|
editingEntity.additionalInfo = |
|
|
|
mergeDeep((this.editingEntity as any).additionalInfo, this.entityComponent.entityFormValue()?.additionalInfo); |
|
|
|
} |
|
|
|
this.entitiesTableConfig.saveEntity(editingEntity).subscribe( |
|
|
|
(entity) => { |
|
|
|
this.entity = entity; |
|
|
|
|