Skip to content

Commit

Permalink
clean empty object when resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Aug 27, 2021
1 parent 8907080 commit 9ecbde6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/min-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ export function resetMinHeight( { attributes = {}, setAttributes } ) {
const { style } = attributes;

setAttributes( {
style: {
style: cleanEmptyObject( {
...style,
dimensions: {
...style?.dimensions,
minHeight: undefined,
},
},
} ),
} );
}

Expand Down

0 comments on commit 9ecbde6

Please sign in to comment.