Skip to content

Commit

Permalink
Edit Post: Check for meta box container before adding constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Nov 6, 2024
1 parent 2d1ac29 commit 39d6d4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ function MetaBoxesMain( { isLegacy } ) {
const container = node.closest(
'.interface-interface-skeleton__content'
);
if ( ! container ) {
return;
}
const noticeLists = container.querySelectorAll(
':scope > .components-notice-list'
);
Expand Down

0 comments on commit 39d6d4c

Please sign in to comment.