From 10b4230434724903468bddda0840007f8c3939ea Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Wed, 4 Dec 2024 02:29:55 -0800 Subject: [PATCH] Fix hiding/showing meta boxes (#67504) Co-authored-by: stokesman Co-authored-by: cbravobernal --- packages/edit-post/src/components/meta-boxes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } ) => (