diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index 2ba6f707422eb..850569d0bbcff 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -326,6 +326,14 @@ class ImageEdit extends React.Component { imageHeightWithinContainer, } = sizes; + if ( imageWidthWithinContainer === undefined ) { + return ( + + + + ); + } + let finalHeight = imageHeightWithinContainer; if ( height > 0 && height < imageHeightWithinContainer ) { finalHeight = height;