diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-09-02 16:28:20 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-09-02 16:28:20 -0400 |
commit | 73b24d35c079aec79c1f5cbed70bf58552d82b26 (patch) | |
tree | dafb04fda87f3eb7b2cb461028dbe7ea4f9fe1b0 /web/react/components | |
parent | 9a1d3986c5ab79b03fcf55616b6dbc0b01e7c46e (diff) | |
parent | fec8fd46c862870ac3bb1d6ce5300a028829e70a (diff) | |
download | chat-73b24d35c079aec79c1f5cbed70bf58552d82b26.tar.gz chat-73b24d35c079aec79c1f5cbed70bf58552d82b26.tar.bz2 chat-73b24d35c079aec79c1f5cbed70bf58552d82b26.zip |
Merge pull request #563 from mattermost/minor-fix
Fix missed binds.
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/sidebar.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index ef23f5bc2..983260187 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -387,13 +387,13 @@ export default class Sidebar extends React.Component { this.setState({loadingDMChannel: -1}); AsyncClient.getChannel(data.id); Utils.switchChannel(data); - }, + }.bind(this), function error() { this.setState({loadingDMChannel: -1}); window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/' + channel.name; - } + }.bind(this) ); - }; + }.bind(this); } } |