mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix accidental adding of change listener on unmount
This commit is contained in:
@@ -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);
|
||||
export default injectIntl(MoreDirectChannels);
|
||||
|
||||
Reference in New Issue
Block a user