Skip to content

Commit

Permalink
Remove unused property defintition. Fixes linting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakePT committed Feb 25, 2022
1 parent 99ceb85 commit 339e520
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets/js/blocks/related-posts/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ class Edit extends Component {
// Use 0 if in the Widgets Screen
const postId = wp.data.select('core/editor').getCurrentPostId() ?? 0;

this.fetchRequest = wp
.apiFetch({
path: addQueryArgs(`/wp/v2/posts/${postId}/related`, urlArgs),
})
wp.apiFetch({
path: addQueryArgs(`/wp/v2/posts/${postId}/related`, urlArgs),
})
.then((posts) => {
this.setState({ posts });
})
Expand Down

0 comments on commit 339e520

Please sign in to comment.