Skip to content

Commit

Permalink
remove unneded object check that confused logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed May 8, 2018
1 parent 193d32e commit 35f41ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ export function isPostAutosavable( state ) {

// If the title, excerpt or content has changed, the post is autosavable.
if (
( autosave.title && title !== autosave.title.raw ) ||
( autosave.excerpt && excerpt !== autosave.excerpt.raw ) ||
( autosave.content && content !== autosave.content.raw )
( title !== autosave.title.raw ) ||
( excerpt !== autosave.excerpt.raw ) ||
( content !== autosave.content.raw )
) {
return true;
}
Expand Down

0 comments on commit 35f41ee

Please sign in to comment.