diff options
author | Corey Hulen <corey@hulen.com> | 2016-02-08 11:00:46 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-02-08 11:00:46 -0800 |
commit | 8f90fd5989e0bf725b3b2593054e620028de4952 (patch) | |
tree | 6dfffd163a22816e74fd7c5f595300666423459b | |
parent | cbee3e0a18f43a94fabf7c4c2692a7425de0354b (diff) | |
parent | 2cd72122efdbe89efe681993300e76cb43176310 (diff) | |
download | chat-8f90fd5989e0bf725b3b2593054e620028de4952.tar.gz chat-8f90fd5989e0bf725b3b2593054e620028de4952.tar.bz2 chat-8f90fd5989e0bf725b3b2593054e620028de4952.zip |
Merge pull request #2104 from mattermost/minor-fix-jw
Fix accidental adding of change listener on unmount
-rw-r--r-- | web/react/components/more_direct_channels.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx index f8a6884d0..3b72b251c 100644 --- a/web/react/components/more_direct_channels.jsx +++ b/web/react/components/more_direct_channels.jsx @@ -57,7 +57,7 @@ class MoreDirectChannels extends React.Component { } componentWillUnmount() { - UserStore.addChangeListener(this.handleUserChange); + UserStore.removeChangeListener(this.handleUserChange); } componentDidUpdate(prevProps) { @@ -318,4 +318,4 @@ MoreDirectChannels.propTypes = { onModalDismissed: React.PropTypes.func }; -export default injectIntl(MoreDirectChannels);
\ No newline at end of file +export default injectIntl(MoreDirectChannels); |