diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/channel_header.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/components/channel_header.jsx b/webapp/components/channel_header.jsx index cfffc70ee..bb7508a40 100644 --- a/webapp/components/channel_header.jsx +++ b/webapp/components/channel_header.jsx @@ -101,6 +101,10 @@ export default class ChannelHeader extends React.Component { document.removeEventListener('keydown', this.openRecentMentions); } + shouldComponentUpdate(nextProps) { + return !!nextProps.channelId; + } + onListenerChange() { const newState = this.getStateFromStores(); if (!Utils.areObjectsEqual(newState, this.state)) { |