(cherry picked from commit ac85110ce7)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
This commit is contained in:
parent
64989a728c
commit
60b82ea5a8
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