Skip to content

Commit

Permalink
Fix sections
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 21, 2024
1 parent 0afce85 commit d5fa686
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/block-editor/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,8 @@ export function isSectionBlock( state, clientId ) {
return (
getBlockName( state, clientId ) === 'core/block' ||
getTemplateLock( state, clientId ) === 'contentOnly' ||
( [ 'navigation', 'zoom-out' ].includes(
__unstableGetEditorMode( state )
) &&
( ( __unstableGetEditorMode( state ) === 'navigation' ||
isZoomOut( state ) ) &&
sectionClientIds.includes( clientId ) )
);
}
Expand Down

0 comments on commit d5fa686

Please sign in to comment.