Skip to content

Commit

Permalink
Zoom Out: Ensure that we only enter zoom out mode if the experiment i…
Browse files Browse the repository at this point in the history
…s enabled (#63417)
  • Loading branch information
scruffian authored Jul 11, 2024
1 parent e5030c6 commit 9b02222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function InserterMenu(
const showMediaPanel = selectedTab === 'media' && !! selectedMediaCategory;

const showZoomOut =
showPatternPanel && window.__experimentalEnableZoomedOutPatternsTab;
showPatternPanel && !! window.__experimentalEnableZoomedOutPatternsTab;

useZoomOut( showZoomOut );

Expand Down

0 comments on commit 9b02222

Please sign in to comment.