fix
This commit is contained in:
@ -117,6 +117,9 @@ export class TenantDetailsComponent implements OnInit {
|
||||
this.messageService.add(`Successfully added account with id ${this.account.id} and tenant with id ${this.tenant.id}`)
|
||||
} else {
|
||||
this.messageService.add("about to update existing tenant")
|
||||
for (const k in this.tenant) {
|
||||
this.tenant[k] = (this.tenant[k] == undefined) ? '' : this.tenant[k]
|
||||
}
|
||||
this.tenant = await this.tenantService.putTenant(this.tenant)
|
||||
this.messageService.add(`Successfully changed tenant with id ${this.tenant.id}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user