Skip to content

Commit

Permalink
Fix hiding/showing meta boxes (#67504)
Browse files Browse the repository at this point in the history
Co-authored-by: stokesman <presstoke@git.wordpress.org>
Co-authored-by: cbravobernal <cbravobernal@git.wordpress.org>
  • Loading branch information
3 people authored and michalczaplinski committed Dec 5, 2024
1 parent e21a005 commit 2cda095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-post/src/components/meta-boxes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } ) => (
Expand Down

0 comments on commit 2cda095

Please sign in to comment.