Skip to content

Commit

Permalink
show patterns either way
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Feb 22, 2024
1 parent b9959b2 commit fc12186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/template-part/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function ReplaceButton( {
function TemplatesList( { availableTemplates, onSelect } ) {
const shownTemplates = useAsyncList( availableTemplates );

if ( ! availableTemplates || availableTemplates?.length < 2 ) {
if ( ! availableTemplates ) {
return null;
}

Expand Down

0 comments on commit fc12186

Please sign in to comment.