Default to an empty channel object (#5094)
This commit is contained in:
parent
7702c050bf
commit
ac85110ce7
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ function makeMapStateToProps() {
|
|||
const getChannel = makeGetChannel();
|
||||
|
||||
return (state, ownProps) => {
|
||||
const channel = ownProps.channel || getChannel(state, {id: ownProps.channelId});
|
||||
const channel = ownProps.channel || getChannel(state, {id: ownProps.channelId}) || {};
|
||||
const member = getMyChannelMember(state, channel.id);
|
||||
const currentUserId = getCurrentUserId(state);
|
||||
const channelDraft = getDraftForChannel(state, channel.id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue