From fe3cc68ff718fbd19703452056265d1c04c9f8ef Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 8 Jun 2017 16:55:52 -0400 Subject: [PATCH] Reset undo history on SETUP_NEW_POST --- editor/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/state.js b/editor/state.js index 1ea18cd909a4f..392b4aba99e6b 100644 --- a/editor/state.js +++ b/editor/state.js @@ -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