PLT-3225 Firefox: Channel header disappears after renaming a channel (fixed with channel switch) (#3470)
Этот коммит содержится в:
@@ -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)) {
|
||||
|
||||
Ссылка в новой задаче
Block a user