Skip to content

Commit

Permalink
fixing prop-types error on relatedPosts array
Browse files Browse the repository at this point in the history
  • Loading branch information
RmnRss committed Oct 1, 2020
1 parent 48b0857 commit 5de5253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/posts/PostLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ PostLayout.propTypes = {
/**
* Post related to the one displayed
*/
relatedPosts: PropTypes.array,
relatedPosts: PropTypes.arrayOf(PropTypes.object),
};

PostLayout.propTypes = {
PostLayout.defaultProps = {
relatedPosts: null,
};

0 comments on commit 5de5253

Please sign in to comment.