Skip to content

Commit

Permalink
Editor: Clear block editor zoom before undos.
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Jul 14, 2019
1 parent 68dcb44 commit 0061fc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ export function redo() {
*
* @return {Object} Action object.
*/
export function undo() {
export function* undo() {
yield dispatch( 'core/block-editor', 'clearZoomedBlocks' );
return { type: 'UNDO' };
}

Expand Down

0 comments on commit 0061fc8

Please sign in to comment.