Fixed error being thrown by ChannelHeader when switching teams (#4619)

* Fixed error being thrown by ChannelHeader when switching teams

* Close SidebarHeaderDropdown after switching teams
Этот коммит содержится в:
Harrison Healey
2016-11-21 16:08:29 -05:00
коммит произвёл GitHub
родитель 43c703e216
Коммит 3c0f8c29db
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@@ -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);
}