Skip to content

Commit

Permalink
Reset undo history on SETUP_NEW_POST
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Jun 8, 2017
1 parent 81e57f2 commit fe3cc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const editor = combineUndoableReducers( {

return state;
},
}, { resetTypes: [ 'RESET_BLOCKS' ] } );
}, { resetTypes: [ 'RESET_BLOCKS', 'SETUP_NEW_POST' ] } );

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

0 comments on commit fe3cc68

Please sign in to comment.