Skip to content

Commit

Permalink
Add th list view by default for the post template if nothing is selec…
Browse files Browse the repository at this point in the history
…ted.
  • Loading branch information
hbhalodia committed May 10, 2024
1 parent b2f8c25 commit 1c7a4ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/post-template/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ export default function PostTemplateEdit( {
icon: list,
title: __( 'List view' ),
onClick: () => setDisplayLayout( { type: 'default' } ),
isActive: layoutType === 'default' || layoutType === 'constrained',
isActive:
'undefined' === typeof layout ||
layoutType === 'default' ||
layoutType === 'constrained',
},
{
icon: grid,
Expand Down

0 comments on commit 1c7a4ac

Please sign in to comment.