From eafc8028314805ded314648e02078cf596760197 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Wed, 17 Aug 2016 07:17:44 -0800 Subject: PLT-3881 Fix websocket errors after leaving the team (#3815) --- webapp/actions/websocket_actions.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webapp/actions') 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) { -- cgit v1.2.3-1-g7c22