Fixed error being thrown by ChannelHeader when switching teams (#4619)
* Fixed error being thrown by ChannelHeader when switching teams * Close SidebarHeaderDropdown after switching teams
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
43c703e216
Коммит
3c0f8c29db
@@ -69,7 +69,7 @@ export default class ChannelHeader extends React.Component {
|
||||
const users = UserStore.getProfileListInChannel(this.props.channelId);
|
||||
|
||||
let otherUserId = null;
|
||||
if (channel.type === 'D') {
|
||||
if (channel && channel.type === 'D') {
|
||||
otherUserId = Utils.getUserIdFromChannelName(channel);
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user