diff --git a/components/post_view/index.js b/components/post_view/index.js index ad0270cdd235..fc7c7952cbe8 100644 --- a/components/post_view/index.js +++ b/components/post_view/index.js @@ -27,7 +27,7 @@ function makeMapStateToProps() { } return { - channel: getChannel(state, ownProps.channelId), + channel: getChannel(state, ownProps.channelId) || {}, lastViewedAt: state.views.channel.lastChannelViewTime[ownProps.channelId], posts, postVisibility: state.views.channel.postVisibility[ownProps.channelId], diff --git a/components/post_view/post_list.jsx b/components/post_view/post_list.jsx index 6d542c048b7b..a6bc74e0eb69 100644 --- a/components/post_view/post_list.jsx +++ b/components/post_view/post_list.jsx @@ -60,7 +60,7 @@ export default class PostList extends React.PureComponent { /** * Set to focus this post */ - focusedPostId: PropTypes.array, + focusedPostId: PropTypes.string, /** * Whether to display the channel intro at full width