From 35f41ee3c7363492e61ddbc7181955850376fd20 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Mon, 7 May 2018 23:28:16 -0400 Subject: [PATCH] remove unneded object check that confused logic --- editor/store/selectors.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/store/selectors.js b/editor/store/selectors.js index acfac03aa4801f..fb964aab4cd6fb 100644 --- a/editor/store/selectors.js +++ b/editor/store/selectors.js @@ -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; }