Merge pull request #2037 from mattermost/plt-1862
PLT-1862 Fix console errors
Этот коммит содержится в:
@@ -185,7 +185,10 @@ export default class Sidebar extends React.Component {
|
||||
|
||||
let currentChannelName = channel.display_name;
|
||||
if (channel.type === 'D') {
|
||||
currentChannelName = Utils.getDirectTeammate(channel.id).username;
|
||||
const teammate = Utils.getDirectTeammate(channel.id);
|
||||
if (teammate != null) {
|
||||
currentChannelName = teammate.username;
|
||||
}
|
||||
}
|
||||
|
||||
const unread = this.getTotalUnreadCount();
|
||||
|
||||
Ссылка в новой задаче
Block a user