diff options
Diffstat (limited to 'webapp/actions/websocket_actions.jsx')
-rw-r--r-- | webapp/actions/websocket_actions.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx index e07e3e217..ab798df28 100644 --- a/webapp/actions/websocket_actions.jsx +++ b/webapp/actions/websocket_actions.jsx @@ -251,7 +251,10 @@ function handleLeaveTeamEvent(msg) { Client.setTeamId(''); BrowserStore.removeGlobalItem('team'); BrowserStore.removeGlobalItem(msg.data.team_id); - GlobalActions.redirectUserToDefaultTeam(); + + if (!global.location.pathname.startsWith('/admin_console')) { + GlobalActions.redirectUserToDefaultTeam(); + } } } else { UserStore.removeProfileFromTeam(msg.data.team_id, msg.data.user_id); |