Skip to content

Commit

Permalink
Temporary e2e test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 2, 2018
1 parent a168c13 commit 0233a47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/editor/src/utils/with-history/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ const withHistory = ( options = {} ) => ( reducer ) => {
return state;
}

// Temporary: illustrates the problem with RECEIVE_BLOCKS creating an
// extra undo level at a random time.
if ( action.type === 'RECEIVE_BLOCKS' ) {
return state;
}

let nextPast = past;

if (
Expand Down

0 comments on commit 0233a47

Please sign in to comment.