From 733d50cf5624beb9022f6969ac7ca7bafd6298bb Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Mon, 2 Dec 2024 16:38:15 -0800 Subject: [PATCH] Fix hiding/showing meta boxes --- 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 } ) => (