From f88fe54a26075e9dd46b1d9d090f8a739aa39e31 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Mon, 14 May 2018 13:10:35 -0400 Subject: [PATCH] remove unused isAutosave in REQUEST_POST_UPDATE_SUCCESS --- editor/store/effects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/store/effects.js b/editor/store/effects.js index 329f77e7ddd0ff..9265435d2da493 100644 --- a/editor/store/effects.js +++ b/editor/store/effects.js @@ -152,7 +152,7 @@ export default { } }, REQUEST_POST_UPDATE_SUCCESS( action, store ) { - const { previousPost, post, isAutosave } = action; + const { previousPost, post } = action; const { dispatch } = store; const publishStatus = [ 'publish', 'private', 'future' ]; @@ -162,7 +162,7 @@ export default { let noticeMessage; let shouldShowLink = true; - if ( isAutosave || ( ! isPublished && ! willPublish ) ) { + if ( ! isPublished && ! willPublish ) { // If autosaving, or saving a non published post, don't show any notice noticeMessage = null; } else if ( isPublished && ! willPublish ) {