fix user profile > tenant switch bug
This commit is contained in:
parent
b1c1a39ed3
commit
1ad09f838f
|
@ -351,12 +351,13 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes
|
|||
}
|
||||
|
||||
switchTenant(): void {
|
||||
if (this.tenantFormGroup.valid === false) return;
|
||||
|
||||
const selectedTenant = this.tenantFormGroup.get('tenantCode').value;
|
||||
|
||||
if (!this.tenantFormGroup.valid || !selectedTenant) return;
|
||||
|
||||
this.authService.selectedTenant(selectedTenant.value);
|
||||
window.location.href = this.tenantHandlingService.getCurrentUrlEnrichedWithTenantCode(selectedTenant.value, true);
|
||||
|
||||
this.authService.selectedTenant(selectedTenant);
|
||||
window.location.href = this.tenantHandlingService.getCurrentUrlEnrichedWithTenantCode(selectedTenant, true);
|
||||
}
|
||||
|
||||
//Preferences
|
||||
|
|
Loading…
Reference in New Issue