diff --git a/packages/block-editor/src/components/block-list/block.js b/packages/block-editor/src/components/block-list/block.js index e2e18b820b3e3d..037aebe18aecef 100644 --- a/packages/block-editor/src/components/block-list/block.js +++ b/packages/block-editor/src/components/block-list/block.js @@ -15,6 +15,7 @@ import { } from '@wordpress/element'; import { getBlockType, + getSaveContent, isUnmodifiedDefaultBlock, serializeRawBlock, } from '@wordpress/blocks'; @@ -156,7 +157,9 @@ function BlockListBlock( { let block; if ( ! isValid ) { - const saveContent = serializeRawBlock( source ); + const saveContent = source + ? serializeRawBlock( source ) + : getSaveContent( blockType, attributes ); block = (