Skip to content

Commit

Permalink
fix: placeholder when editing a template
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Nov 11, 2024
1 parent 2ace418 commit 2baa225
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/blocks/subtitle-block/site-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import blockData from './block.json';

const EditComponent = ( { context: { postType, postId } } ) => {
const [ postMeta = {} ] = useEntityProp( 'postType', postType, 'meta', postId );
return postMeta[ newspack_block_theme_subtitle_block.post_meta_name ] || '';
return (
postMeta[ newspack_block_theme_subtitle_block.post_meta_name ] ||
__( 'Article subtitle', 'newspack-block-theme' )
);
};

blockData = {
Expand Down

0 comments on commit 2baa225

Please sign in to comment.