Browse Source

fix: set entity group owner only on create in customer view

(cherry picked from commit 9440da3d023cb9c37267106af03e1e60c5e4734e)
pull/16844/head
Dmytro Skarzhynets 1 month ago
committed by Viacheslav Klimov
parent
commit
15923ae7cd
Failed to extract signature
  1. 2
      ui-ngx/src/app/modules/home/components/group/entity-groups-table-config.ts

2
ui-ngx/src/app/modules/home/components/group/entity-groups-table-config.ts

@ -115,7 +115,7 @@ export class EntityGroupsTableConfig extends EntityTableConfig<EntityGroupInfo>
this.saveEntity = (entityGroup, originalEntityGroup) => {
entityGroup.type = this.groupType;
if (this.customerId) {
if (this.customerId && !entityGroup.id) {
entityGroup.ownerId = {
entityType: EntityType.CUSTOMER,
id: this.customerId

Loading…
Cancel
Save