Этот коммит содержится в:
Joram Wilander
2016-11-01 08:34:52 -04:00
коммит произвёл Christopher Speller
родитель 1d4f42acd9
Коммит 6d3b3162b0
4 изменённых файлов: 5 добавлений и 2 удалений

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

@@ -80,7 +80,7 @@ export default class ChannelNotificationsModal extends React.Component {
}
createNotifyLevelSection(serverError) {
// Get glabal user setting for notifications
const globalNotifyLevel = this.props.currentUser.notify_props.desktop;
const globalNotifyLevel = this.props.currentUser.notify_props ? this.props.currentUser.notify_props.desktop : 'all';
let globalNotifyLevelName;
if (globalNotifyLevel === 'all') {
globalNotifyLevelName = (

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

@@ -27,11 +27,13 @@ export default class TeamUrl extends React.Component {
isLoading: false
};
}
submitBack(e) {
e.preventDefault();
this.props.state.wizard = 'display_name';
this.props.updateParent(this.props.state);
}
submitNext(e) {
e.preventDefault();

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

@@ -400,6 +400,7 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
ChannelStore.resetCounts(currentId);
}
ChannelStore.setUnreadCountsByMembers(action.members);
ChannelStore.emitChange();
break;
case ActionTypes.RECEIVED_MORE_CHANNELS:
ChannelStore.storeMoreChannels(action.channels);

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

@@ -243,7 +243,7 @@ export function getMoreChannels(force) {
}
export function getChannelStats(channelId = ChannelStore.getCurrentId()) {
if (isCallInProgress('getChannelStats' + channelId)) {
if (isCallInProgress('getChannelStats' + channelId) || channelId == null) {
return;
}