Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

PLT-7825: Fix unjoined-channel permalinks #141

Merged
merged 2 commits into from
Oct 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/post_view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion components/post_view/post_list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down