Skip to content

Commit

Permalink
Even more concise statement
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed May 22, 2018
1 parent 4c44c82 commit cc3dbea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions editor/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,7 @@ export function getEditedPostExcerpt( state ) {
* @return {string} Preview URL.
*/
export function getEditedPostPreviewLink( state ) {
const link = state.currentPost.preview_link;
if ( link ) {
return link;
}
return null;
return getCurrentPost( state ).preview_link || null;
}

/**
Expand Down

0 comments on commit cc3dbea

Please sign in to comment.