Skip to content

Commit

Permalink
Address console warning for Image block inside Column block (#15239)
Browse files Browse the repository at this point in the history
  • Loading branch information
kienstra authored and youknowriad committed May 16, 2019
1 parent 34d24ed commit 3aa603a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,15 +482,15 @@ class ImageEdit extends Component {
type="number"
className="block-library-image__dimensions__width"
label={ __( 'Width' ) }
value={ width !== undefined ? width : imageWidth }
value={ width || imageWidth || '' }
min={ 1 }
onChange={ this.updateWidth }
/>
<TextControl
type="number"
className="block-library-image__dimensions__height"
label={ __( 'Height' ) }
value={ height !== undefined ? height : imageHeight }
value={ height || imageHeight || '' }
min={ 1 }
onChange={ this.updateHeight }
/>
Expand Down

0 comments on commit 3aa603a

Please sign in to comment.