Skip to content

Commit

Permalink
Use object values
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Sep 24, 2024
1 parent 3baaa81 commit 9a1273f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blocks/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ export const hasContentRoleAttribute = ( state, blockTypeName ) => {
return false;
}

return Object.entries( blockType.attributes ).some(
( [ , { role, __experimentalRole } ] ) => {
return Object.values( blockType.attributes ).some(
( { role, __experimentalRole } ) => {
if ( role === 'content' ) {
return true;
}
Expand Down

0 comments on commit 9a1273f

Please sign in to comment.