summaryrefslogtreecommitdiffstats
path: root/webapp/stores/team_store.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-08-17 07:17:44 -0800
committerJoram Wilander <jwawilander@gmail.com>2016-08-17 11:17:44 -0400
commiteafc8028314805ded314648e02078cf596760197 (patch)
treea891483de272d1335b02e3aa1e994aece808cc0b /webapp/stores/team_store.jsx
parentdba2deabb06aa5092bc634687294fa5c8cecd8bd (diff)
downloadchat-eafc8028314805ded314648e02078cf596760197.tar.gz
chat-eafc8028314805ded314648e02078cf596760197.tar.bz2
chat-eafc8028314805ded314648e02078cf596760197.zip
PLT-3881 Fix websocket errors after leaving the team (#3815)
Diffstat (limited to 'webapp/stores/team_store.jsx')
-rw-r--r--webapp/stores/team_store.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/stores/team_store.jsx b/webapp/stores/team_store.jsx
index 90cb66bb2..e59f0ca43 100644
--- a/webapp/stores/team_store.jsx
+++ b/webapp/stores/team_store.jsx
@@ -63,6 +63,10 @@ class TeamStoreClass extends EventEmitter {
return this.currentTeamId;
}
+ setCurrentId(id) {
+ this.currentTeamId = id;
+ }
+
getCurrent() {
const team = this.teams[this.currentTeamId];