Merge pull request #4059 from vvlladd28/bug/entities-panel/merge-additional-info
Fixed merge additional info at updated entity
This commit is contained in:
commit
6f2a4409c1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user