Skip to content

Commit

Permalink
Fallback to slug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Nov 29, 2021
1 parent bb48604 commit ff817bb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -21,7 +21,7 @@ export default function EditTemplateTitle( { template } ) {
'Give the template a title that indicates its purpose, e.g. "Full Width".'
) }
onChange={ ( newTitle ) => {
setTitle( newTitle );
setTitle( newTitle || template.slug );
} }
/>
);
Expand Down

0 comments on commit ff817bb

Please sign in to comment.