Skip to content

Commit

Permalink
Fix use-zoom-out hooks dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Apr 18, 2024
1 parent bf2f485 commit a873e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/use-zoom-out.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function useZoomOut( zoomOut = true ) {
__unstableSetEditorMode( originalEditingMode.current );
}
};
}, [ __unstableGetEditorMode, __unstableSetEditorMode, mode ] );
}, [] );

// The effect opens the zoom-out view if we want it open and it's not currently in zoom-out mode.
useEffect( () => {
Expand Down

0 comments on commit a873e04

Please sign in to comment.