Skip to content

Commit

Permalink
Chrome: Fix post excerpt selector
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 23, 2017
1 parent 99cc1f0 commit c251345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/selectors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { first, last } from 'lodash';
import { first, last, get } from 'lodash';

/**
* Internal dependencies
Expand Down Expand Up @@ -60,13 +60,13 @@ export function getEditedPostVisibility( state ) {

export function getEditedPostTitle( state ) {
return state.editor.edits.title === undefined
? state.currentPost.title.raw
? get( state.currentPost, 'title.raw' )
: state.editor.edits.title;
}

export function getEditedPostExcerpt( state ) {
return state.editor.edits.excerpt === undefined
? state.currentPost.excerpt.raw
? get( state.currentPost, 'excerpt.raw' )
: state.editor.edits.excerpt;
}

Expand Down

0 comments on commit c251345

Please sign in to comment.