diff --git a/packages/client/src/user/SwitchRole.tsx b/packages/client/src/user/SwitchRole.tsx index e7d4ed1da..a3548a217 100644 --- a/packages/client/src/user/SwitchRole.tsx +++ b/packages/client/src/user/SwitchRole.tsx @@ -46,7 +46,7 @@ export const SwitchRole = () => { onChange={async (roleName) => { setRoleName(roleName); await api.resource('users').setDefaultRole({ values: { roleName } }); - window.location.reload(); + window.location.href = '/'; }} />