summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-07-27 09:53:49 -0400
committerChristopher Speller <crspeller@gmail.com>2016-07-27 09:53:49 -0400
commit199c55b5662789e27858a2da9461d4e2ea6026c5 (patch)
treeb8ec0c46582d143581400334b747226f93a246a9 /webapp/client/client.jsx
parentf5375254f90053bd9b688d36f758aca309ec3735 (diff)
downloadchat-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.jsx2
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
}