Handle null currentChannelMember (#2980)

This commit is contained in:
Miguel Alatzar 2019-07-16 14:52:58 -07:00 committed by Joram Wilander
parent 0af97a1f63
commit dcfb39efa4

View file

@ -96,7 +96,7 @@ function mapStateToProps(state) {
currentChannelMemberCount,
currentUserId,
isChannelMuted: isChannelMuted(currentChannelMember),
ignoreChannelMentions: areChannelMentionsIgnored(currentChannelMember.notify_props, currentUser.notify_props),
ignoreChannelMentions: areChannelMentionsIgnored(currentChannelMember && currentChannelMember.notify_props, currentUser.notify_props),
isCurrent,
isFavorite,
status,