Skip to content

Commit

Permalink
Remove unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Sep 20, 2024
1 parent ebad780 commit 5d193b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2999,9 +2999,8 @@ export const getBlockEditingMode = createRegistrySelector(
return 'contentOnly';
}
const name = getBlockName( state, clientId );
const isContent = unlock(
select( blocksStore )
).hasContentRoleAttribute( name );
const isContent =
select( blocksStore ).hasContentRoleAttribute( name );
return isContent ? 'contentOnly' : 'disabled';
}
const parentMode = getBlockEditingMode( state, rootClientId );
Expand Down

0 comments on commit 5d193b3

Please sign in to comment.