Skip to content

Commit

Permalink
Autosave: Fix: Autosave may destroy save incorrect post title
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Aug 1, 2018
1 parent 0a4b2a5 commit c35fa8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/editor/src/store/effects/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
getEditedPostContent,
getAutosave,
getCurrentPostType,
getEditedPostAttribute,
isEditedPostAutosaveable,
isEditedPostSaveable,
isEditedPostNew,
Expand Down Expand Up @@ -83,6 +84,7 @@ export const requestPostUpdate = async ( action, store ) => {
let toSend = {
...edits,
content: getEditedPostContent( state ),
title: getEditedPostAttribute( state, 'title' ),
id: post.id,
};

Expand Down

0 comments on commit c35fa8c

Please sign in to comment.