Fixes redirection while switching the workspace (#5259)

This commit is contained in:
Kavin Venkatachalam 2023-01-09 15:06:54 +05:30 committed by GitHub
parent 8075b9f957
commit 127a47ef41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ export const OrganizationList = function () {
organizationService.switchOrganization(orgId).then(
(data) => {
authenticationService.updateCurrentUserDetails(data);
window.location.href = '';
window.location.reload();
},
() => {
return (window.location.href = `login/${orgId}`);