diff --git a/templates/transforms/files/plugin/README.md.mustache b/templates/transforms/files/plugin/README.md.mustache index 52eb0cf..f8de1a7 100644 --- a/templates/transforms/files/plugin/README.md.mustache +++ b/templates/transforms/files/plugin/README.md.mustache @@ -228,8 +228,9 @@ const transformers = { blocks: [ 'core/cover' ], transform: ( attributes, innerBlocks ) => { const [ firstBlock ] = innerBlocks; - const { content } = - firstBlock.attributes || 'More that meets the eye!'; + const content = + firstBlock?.attributes?.content || + 'More that meets the eye!'; return createBlock( 'block-developers-cookbook/transforms', { message: content, } );