diff --git a/packages/block-editor/src/hooks/min-height.js b/packages/block-editor/src/hooks/min-height.js index 76531ac05eeeaa..c97faf985b2222 100644 --- a/packages/block-editor/src/hooks/min-height.js +++ b/packages/block-editor/src/hooks/min-height.js @@ -49,13 +49,13 @@ export function resetMinHeight( { attributes = {}, setAttributes } ) { const { style } = attributes; setAttributes( { - style: { + style: cleanEmptyObject( { ...style, dimensions: { ...style?.dimensions, minHeight: undefined, }, - }, + } ), } ); }