Skip to content

Commit

Permalink
Set default tab to 'blocks' if none passed
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Dec 9, 2024
1 parent 9ae9ec3 commit 5c3a08b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ function InserterMenu(
if ( isZoomOutMode ) {
return 'patterns';
}

return 'blocks';
}
const [ selectedTab, setSelectedTab ] = useState( getInitialTab() );

Expand Down

0 comments on commit 5c3a08b

Please sign in to comment.