Commit 58c12d1212c4a1276c7b3899ef27a85b75895752
1 parent
34aab328
Fixed merge additional info at updated entity
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -44,7 +44,7 @@ import { EntityAction } from '@home/models/entity/entity-component.models'; |
44 | 44 | import { Subscription } from 'rxjs'; |
45 | 45 | import { MatTab, MatTabGroup } from '@angular/material/tabs'; |
46 | 46 | import { EntityTabsComponent } from '@home/components/entity/entity-tabs.component'; |
47 | -import { deepClone } from '@core/utils'; | |
47 | +import { deepClone, mergeDeep } from '@core/utils'; | |
48 | 48 | |
49 | 49 | @Component({ |
50 | 50 | selector: 'tb-entity-details-panel', |
... | ... | @@ -280,7 +280,7 @@ export class EntityDetailsPanelComponent extends PageComponent implements OnInit |
280 | 280 | |
281 | 281 | saveEntity() { |
282 | 282 | if (this.detailsForm.valid) { |
283 | - const editingEntity = {...this.editingEntity, ...this.entityComponent.entityFormValue()}; | |
283 | + const editingEntity = mergeDeep(this.editingEntity, this.entityComponent.entityFormValue()); | |
284 | 284 | this.entitiesTableConfig.saveEntity(editingEntity).subscribe( |
285 | 285 | (entity) => { |
286 | 286 | this.entity = entity; | ... | ... |