Browse Source

Merge pull request #4059 from vvlladd28/bug/entities-panel/merge-additional-info

Fixed merge additional info at updated entity
pull/4088/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
6f2a4409c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui-ngx/src/app/modules/home/components/entity/entity-details-panel.component.ts

4
ui-ngx/src/app/modules/home/components/entity/entity-details-panel.component.ts

@ -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…
Cancel
Save