diff --git a/packages/edit-post/src/components/meta-boxes/index.js b/packages/edit-post/src/components/meta-boxes/index.js index fdc74a5df4ce95..21416ee43ae240 100644 --- a/packages/edit-post/src/components/meta-boxes/index.js +++ b/packages/edit-post/src/components/meta-boxes/index.js @@ -13,9 +13,9 @@ import { store as editPostStore } from '../../store'; export default function MetaBoxes( { location } ) { const metaBoxes = useSelect( ( select ) => - select( editPostStore ).getMetaBoxesPerLocation[ location ] + select( editPostStore ).getMetaBoxesPerLocation( location ), + [ location ] ); - return ( <> { ( metaBoxes ?? [] ).map( ( { id } ) => (