Skip to content

Commit

Permalink
removes .data from latestPosts in props — no longer includes data object
Browse files Browse the repository at this point in the history
  • Loading branch information
jomurgel committed Sep 21, 2018
1 parent f682d41 commit 688eac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/recent-posts/recent-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class RecentPostsBlock extends Component {
render() {
const maxItems = DEFAULT_MAX_ITEMS;
const minItems = DEFAULT_MIN_ITEMS;
const latestPosts = this.props.latestPosts.data;
const latestPosts = this.props.latestPosts;
const { attributes, setAttributes } = this.props;
const { displayPostDate, align, postLayout, columns, order, orderby, postsToShow } = attributes;

Expand Down

0 comments on commit 688eac8

Please sign in to comment.