diff options
Diffstat (limited to 'webapp/actions')
-rw-r--r-- | webapp/actions/websocket_actions.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx index 9150e4111..9548a58dd 100644 --- a/webapp/actions/websocket_actions.jsx +++ b/webapp/actions/websocket_actions.jsx @@ -194,6 +194,8 @@ function handleLeaveTeamEvent(msg) { // if the are on the team begin removed redirect them to the root if (TeamStore.getCurrentId() === msg.team_id) { + TeamStore.setCurrentId(''); + Client.setTeamId(''); browserHistory.push('/'); } } else if (TeamStore.getCurrentId() === msg.team_id) { |