Skip to content

Commit

Permalink
Revert changes to the layout. The JS error is to be handled separately.
Browse files Browse the repository at this point in the history
Ensure template parts can be accessed from the patterns sidebar
  • Loading branch information
ramonjd committed Dec 4, 2024
1 parent a6d5028 commit e6d7551
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,9 @@ function Layout() {
isResizableFrameOversized
}
/>
{ areas.mobile }
</SidebarContent>
) }
{ canvas === 'edit' ? areas.mobile : null }
{ areas.mobile }
</div>
) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ function MobilePatternsView() {
return <Editor />;
}

if ( postType === 'wp_block' && !! categoryId ) {
if (
( postType === 'wp_block' || postType === 'wp_template_part' ) &&
!! categoryId
) {
return <PagePatterns />;
}

Expand Down

0 comments on commit e6d7551

Please sign in to comment.