Skip to content

Commit

Permalink
TemplateContentPanel: Fix the 'getBlocksByName' selector call (#63922)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: noisysocks <[email protected]>
  • Loading branch information
4 people authored Jul 26, 2024
1 parent eea7183 commit 9f7e26f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export default function DisableNonPageContentBlocks() {
);
const disabledIds = useSelect( ( select ) => {
const { getBlocksByName, getBlockOrder } = select( blockEditorStore );
return getBlocksByName( [ 'core/template-part' ] ).flatMap(
( clientId ) => getBlockOrder( clientId )
return getBlocksByName( 'core/template-part' ).flatMap( ( clientId ) =>
getBlockOrder( clientId )
);
}, [] );

Expand Down

0 comments on commit 9f7e26f

Please sign in to comment.