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 authored and ntsekouras committed Mar 7, 2023
1 parent 262cfdc commit 1049c85
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

0 comments on commit 1049c85

Please sign in to comment.