diff --git a/blocks/library/quote/index.js b/blocks/library/quote/index.js index a58117722c708..68380fd59a2b8 100644 --- a/blocks/library/quote/index.js +++ b/blocks/library/quote/index.js @@ -56,7 +56,12 @@ registerBlockType( 'core/quote', { type: 'block', blocks: [ 'core/text' ], transform: ( { value, citation, ...attrs } ) => { - const textElement = Array.isArray( value ) ? value[ 0 ] : value; + const textElement = value[ 0 ]; + if ( ! textElement ) { + return createBlock( 'core/text', { + content: citation, + } ); + } const textContent = isString( textElement ) ? textElement : textElement.props.children; if ( Array.isArray( value ) || citation ) { const text = createBlock( 'core/text', {