Skip to content

Commit

Permalink
Merge pull request #3178 from WordPress/fix/2916-undo-new-post
Browse files Browse the repository at this point in the history
State: Reset editor undo history only at initial setup
  • Loading branch information
aduth committed Oct 31, 2017
2 parents 31b1e14 + 2cba241 commit 77b146d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export const editor = combineUndoableReducers( {

return state;
},
}, { resetTypes: [ 'RESET_POST' ] } );
}, { resetTypes: [ 'SETUP_EDITOR' ] } );

/**
* Reducer returning the last-known state of the current post, in the format
Expand Down

0 comments on commit 77b146d

Please sign in to comment.