Skip to content

Commit

Permalink
Make sure the Nav block's directly inserted block is a Page variation (
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Mar 6, 2023
1 parent e60d453 commit 637bbcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/navigation/edit/inner-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const ALLOWED_BLOCKS = [

const DEFAULT_BLOCK = {
name: 'core/navigation-link',
attributes: {
type: 'page',
},
};

export default function NavigationInnerBlocks( {
Expand Down

1 comment on commit 637bbcd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 637bbcd.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4341863981
📝 Reported issues:

Please sign in to comment.