Browse Source

set id prop instead of tenantId

pull/7861/head
mehmet-erim 6 years ago
parent
commit
d7661e0adc
  1. 4
      npm/ng-packs/packages/account/src/lib/components/tenant-box/tenant-box.component.ts

4
npm/ng-packs/packages/account/src/lib/components/tenant-box/tenant-box.component.ts

@ -51,13 +51,13 @@ export class TenantBoxComponent
this.tenantService
.findTenantByName(this.name, {})
.pipe(finalize(() => (this.modalBusy = false)))
.subscribe(({ success, ...tenant }) => {
.subscribe(({ success, tenantId: id, ...tenant }) => {
if (!success) {
this.showError();
return;
}
this.setTenant({ ...tenant, isAvailable: true });
this.setTenant({ ...tenant, id, isAvailable: true });
this.isModalVisible = false;
});
}

Loading…
Cancel
Save