Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Use template slug if no template title is set
Browse files Browse the repository at this point in the history
  • Loading branch information
frontdevde committed Nov 2, 2021
1 parent 3a6771a commit 6d9cd1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/blocks/legacy-template/index.tsx
Expand Up @@ -23,7 +23,8 @@ interface Props {

const Edit = ( { attributes }: Props ) => {
const blockProps = useBlockProps();
const templateTitle = TEMPLATE_TITLES[ attributes.template ];
const templateTitle =
TEMPLATE_TITLES[ attributes.template ] ?? attributes.template;
return (
<div { ...blockProps }>
<Placeholder
Expand Down

0 comments on commit 6d9cd1c

Please sign in to comment.