summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/channel_header.jsx4
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)) {