|
|
|
@ -44,7 +44,7 @@ import { EntityAction } from '@home/models/entity/entity-component.models'; |
|
|
|
import { Subscription } from 'rxjs'; |
|
|
|
import { MatTab, MatTabGroup } from '@angular/material/tabs'; |
|
|
|
import { EntityTabsComponent } from '@home/components/entity/entity-tabs.component'; |
|
|
|
import { deepClone } from '@core/utils'; |
|
|
|
import { deepClone, mergeDeep } from '@core/utils'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'tb-entity-details-panel', |
|
|
|
@ -280,7 +280,7 @@ export class EntityDetailsPanelComponent extends PageComponent implements OnInit |
|
|
|
|
|
|
|
saveEntity() { |
|
|
|
if (this.detailsForm.valid) { |
|
|
|
const editingEntity = {...this.editingEntity, ...this.entityComponent.entityFormValue()}; |
|
|
|
const editingEntity = mergeDeep(this.editingEntity, this.entityComponent.entityFormValue()); |
|
|
|
this.entitiesTableConfig.saveEntity(editingEntity).subscribe( |
|
|
|
(entity) => { |
|
|
|
this.entity = entity; |
|
|
|
|