diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-07-27 09:53:49 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-07-27 09:53:49 -0400 |
commit | 199c55b5662789e27858a2da9461d4e2ea6026c5 (patch) | |
tree | b8ec0c46582d143581400334b747226f93a246a9 /webapp/client/client.jsx | |
parent | f5375254f90053bd9b688d36f758aca309ec3735 (diff) | |
download | chat-199c55b5662789e27858a2da9461d4e2ea6026c5.tar.gz chat-199c55b5662789e27858a2da9461d4e2ea6026c5.tar.bz2 chat-199c55b5662789e27858a2da9461d4e2ea6026c5.zip |
Only get channels and posts on WebSocket connect if team is set (#3684)
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r-- | webapp/client/client.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index 88da51372..cf015bc84 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -40,7 +40,7 @@ export default class Client { } getTeamId() { - if (this.teamId === '') { + if (!this.teamId) { console.error('You are trying to use a route that requires a team_id, but you have not called setTeamId() in client.jsx'); // eslint-disable-line no-console } |