diff --git a/packages/editor/src/components/block-list/block.js b/packages/editor/src/components/block-list/block.js index d7bc04526809d9..cf10c0644fc0f9 100644 --- a/packages/editor/src/components/block-list/block.js +++ b/packages/editor/src/components/block-list/block.js @@ -166,21 +166,14 @@ export class BlockListBlock extends Component { const metaAttributes = reduce( attributes, ( result, value, key ) => { if ( get( type, [ 'attributes', key, 'source' ] ) === 'meta' ) { - const metaKey = type.attributes[ key ].meta; - result = { - previous: { [ metaKey ]: this.props.meta[ metaKey ] }, - edits: { [ metaKey ]: value }, - }; + result[ type.attributes[ key ].meta ] = value; } return result; }, {} ); if ( size( metaAttributes ) ) { - this.props.onMetaChange( { - ...metaAttributes.previous, - ...metaAttributes.edits, - } ); + this.props.onMetaChange( metaAttributes ); } } @@ -592,7 +585,6 @@ const applyWithSelect = withSelect( ( select, { clientId, rootClientId, isLargeV isMultiSelecting, isTyping, getBlockIndex, - getEditedPostAttribute, getBlockMode, isSelectionEnabled, getSelectedBlocksInitialCaretPosition, @@ -617,7 +609,6 @@ const applyWithSelect = withSelect( ( select, { clientId, rootClientId, isLargeV // Thus to avoid unnecessary rerenders we avoid updating the prop if the block is not selected. isTypingWithinBlock: ( isSelected || isParentOfSelectedBlock ) && isTyping(), order: getBlockIndex( clientId, rootClientId ), - meta: getEditedPostAttribute( 'meta' ), mode: getBlockMode( clientId ), isSelectionEnabled: isSelectionEnabled(), initialPosition: getSelectedBlocksInitialCaretPosition(),