Skip to content

Commit

Permalink
remove unused isAutosave in REQUEST_POST_UPDATE_SUCCESS
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed May 14, 2018
1 parent c31eb05 commit f88fe54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/store/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ];
Expand All @@ -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 ) {
Expand Down

0 comments on commit f88fe54

Please sign in to comment.