MM-11323 Added defensive code in LongPost makeMapStateToProps (#1923)
This commit is contained in:
parent
d410b1eed3
commit
8ada284f6f
1 changed files with 2 additions and 2 deletions
|
|
@ -22,9 +22,9 @@ function makeMapStateToProps() {
|
|||
|
||||
return {
|
||||
channelName: channel ? channel.display_name : '',
|
||||
hasReactions: post.has_reactions,
|
||||
hasReactions: post ? post.has_reactions : false,
|
||||
inThreadView: Boolean(state.entities.posts.selectedPostId),
|
||||
fileIds: post.file_ids,
|
||||
fileIds: post ? post.file_ids : false,
|
||||
theme: getTheme(state),
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue