Skip to content

Commit

Permalink
fix: set height to an empty string when nextHeight is null or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshbhutkar committed Jan 29, 2025
1 parent 373e811 commit 1d10e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/spacer/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function SpacerControls( {
label={ __( 'Height' ) }
value={ height }
onChange={ ( nextHeight ) =>
setAttributes( { height: nextHeight } )
setAttributes( { height: nextHeight ?? '' } )
}
isResizing={ isResizing }
/>
Expand Down

0 comments on commit 1d10e3d

Please sign in to comment.