Skip to content

Commit

Permalink
fixed the failing session persistence test
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed May 28, 2019
1 parent a025e97 commit 4fce3af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,10 @@ export function blockSelection( state = BLOCK_SELECTION_INITIAL_STATE, action )
previousSelection: omit( state, [ 'previousSelection' ] ),
};
case 'RESTORE_SELECTED_BLOCK':
return state.previousSelection;
return {
...BLOCK_SELECTION_INITIAL_STATE,
...state.previousSelection,
};
case 'START_MULTI_SELECT':
if ( state.isMultiSelecting ) {
return state;
Expand Down

0 comments on commit 4fce3af

Please sign in to comment.