Skip to content

Commit

Permalink
Set empty attribute to undefined instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Jun 9, 2021
1 parent c9fdf11 commit 4cfa84f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function ImageSizeControl( {
onChange( {
width:
value === ''
? null
? undefined
: parseInt( value, 10 ),
} )
}
Expand All @@ -74,7 +74,7 @@ export default function ImageSizeControl( {
onChange( {
height:
value === ''
? null
? undefined
: parseInt( value, 10 ),
} )
}
Expand Down

0 comments on commit 4cfa84f

Please sign in to comment.