This commit is contained in:
2021-09-10 19:07:08 +02:00
parent 412e2b61f3
commit df4adecda1
2 changed files with 8 additions and 5 deletions

View File

@ -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}`)
}