diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/actions/websocket_actions.jsx | 1 | ||||
-rw-r--r-- | webapp/utils/async_client.jsx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx index 63f2c535a..d03025efb 100644 --- a/webapp/actions/websocket_actions.jsx +++ b/webapp/actions/websocket_actions.jsx @@ -223,6 +223,7 @@ function handleLeaveTeamEvent(msg) { if (TeamStore.getCurrentId() === msg.data.team_id) { TeamStore.setCurrentId(''); Client.setTeamId(''); + BrowserStore.removeGlobalItem('team'); BrowserStore.removeGlobalItem(msg.data.team_id); GlobalActions.redirectUserToDefaultTeam(); } diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index 66f13f04d..25724ec5e 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -139,7 +139,7 @@ export function getMyChannelMembers() { } export function viewChannel(channelId = ChannelStore.getCurrentId(), prevChannelId = '', time = 0) { - if (channelId == null) { + if (channelId == null || !Client.teamId) { return; } |