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

Commit

Permalink
PLT-7825: Fix unjoined-channel permalinks (#141)
Browse files Browse the repository at this point in the history
* fix unjoined-channel permalinks

* rm redundant fix (already fixed in #124)
  • Loading branch information
ccbrown authored Oct 11, 2017
1 parent e3e831e commit d5630ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit d5630ad

Please sign in to comment.