Skip to content

Commit ce7cc5b

Browse files
committed
remove duplicate condition, zoom out makes sections content only
1 parent a66f376 commit ce7cc5b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export function BlockSettingsDropdown( {
6565
selectedBlockClientIds,
6666
openedBlockSettingsMenu,
6767
isContentOnly,
68-
isZoomOut,
6968
} = useSelect(
7069
( select ) => {
7170
const {
@@ -76,7 +75,6 @@ export function BlockSettingsDropdown( {
7675
getBlockAttributes,
7776
getOpenedBlockSettingsMenu,
7877
getBlockEditingMode,
79-
isZoomOut: _isZoomOut,
8078
} = unlock( select( blockEditorStore ) );
8179

8280
const { getActiveBlockVariation } = select( blocksStore );
@@ -101,7 +99,6 @@ export function BlockSettingsDropdown( {
10199
openedBlockSettingsMenu: getOpenedBlockSettingsMenu(),
102100
isContentOnly:
103101
getBlockEditingMode( firstBlockClientId ) === 'contentOnly',
104-
isZoomOut: _isZoomOut(),
105102
};
106103
},
107104
[ firstBlockClientId ]
@@ -314,7 +311,7 @@ export function BlockSettingsDropdown( {
314311
</MenuItem>
315312
</MenuGroup>
316313
) }
317-
{ ! isContentOnly && ! isZoomOut && (
314+
{ ! isContentOnly && (
318315
<BlockSettingsMenuControls.Slot
319316
fillProps={ {
320317
onClose,

0 commit comments

Comments
 (0)