Skip to content

Commit

Permalink
Template Part: Fix site editor error when loading with list view set …
Browse files Browse the repository at this point in the history
…to always display (#58868)


Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
  • Loading branch information
3 people authored Feb 9, 2024
1 parent 8fe2508 commit 93d417b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-library/src/template-part/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export const settings = {
return;
}

return decodeEntities( entity.title ) || capitalCase( entity.slug );
return (
decodeEntities( entity.title ) || capitalCase( entity.slug || '' )
);
},
edit,
};
Expand Down

0 comments on commit 93d417b

Please sign in to comment.