From b1b60d43779d022fb4ca710bbff7d2533bec561e Mon Sep 17 00:00:00 2001 From: iseulde Date: Thu, 1 Nov 2018 20:57:41 +0100 Subject: [PATCH] wip --- packages/editor/src/utils/with-history/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor/src/utils/with-history/index.js b/packages/editor/src/utils/with-history/index.js index 9a6bf045df94c7..3624f41070a675 100644 --- a/packages/editor/src/utils/with-history/index.js +++ b/packages/editor/src/utils/with-history/index.js @@ -112,6 +112,10 @@ const withHistory = ( options = {} ) => ( reducer ) => { return state; } + if ( includes( options.ignoreTypes, action.type ) ) { + return state; + } + let nextPast = past; if (