Skip to content

Commit

Permalink
Fix BlockTransformations usage of withEditorSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 13, 2018
1 parent 10cf461 commit a477658
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function BlockTransformations( { blocks, small = false, onTransform, onClick = n
</Fragment>
);
}
export default compose(
export default compose( [
withSelect( ( select, ownProps ) => {
return {
blocks: ownProps.uids.map( ( uid ) => select( 'core/editor' ).getBlock( uid ) ),
Expand All @@ -64,11 +64,11 @@ export default compose(
);
},
} ) ),
withEditorSettings( 'editor' )( ( settings ) => {
withEditorSettings( ( settings ) => {
const { templateLock } = settings;

return {
isLocked: !! templateLock,
};
} ),
)( BlockTransformations );
] )( BlockTransformations );

0 comments on commit a477658

Please sign in to comment.