Skip to content

Commit

Permalink
reset saving state on RESET_AUTOSAVE
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed May 14, 2018
1 parent d795e1d commit 2531102
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions editor/store/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ export default {
type: 'RESET_AUTOSAVE',
post: autosave,
} );

dispatch( {
type: 'REQUEST_POST_UPDATE_SUCCESS',
previousPost: post,
post: post,
isAutosave: true,
} );
},
() => {
dispatch( {
Expand Down
1 change: 1 addition & 0 deletions editor/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ export function saving( state = {}, action ) {
error: null,
};

case 'RESET_AUTOSAVE':
case 'REQUEST_POST_UPDATE_SUCCESS':
return {
requesting: false,
Expand Down

0 comments on commit 2531102

Please sign in to comment.