Skip to content

Commit

Permalink
Remove merging of previous autosave values when creating the next aut…
Browse files Browse the repository at this point in the history
…osave
  • Loading branch information
talldan committed Sep 26, 2018
1 parent 9e1a31b commit e44f855
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/editor/src/store/effects/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
getCurrentPost,
getPostEdits,
getEditedPostContent,
getAutosave,
getCurrentPostType,
isEditedPostAutosaveable,
isEditedPostSaveable,
Expand Down Expand Up @@ -105,11 +104,10 @@ export const requestPostUpdate = async ( action, store ) => {

let request;
if ( isAutosave ) {
// Ensure autosaves contain all expected fields, using autosave or
// post values as fallback if not otherwise included in edits.
// Ensure autosaves contain all expected fields, using post
// values as fallback if not otherwise included in edits.
toSend = {
...pick( post, [ 'title', 'content', 'excerpt' ] ),
...getAutosave( state ),
...toSend,
parent: post.id,
};
Expand Down

0 comments on commit e44f855

Please sign in to comment.