We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c6632 commit df6da5fCopy full SHA for df6da5f
src/block-components/image/edit.js
@@ -175,7 +175,7 @@ const Controls = props => {
175
newAttributes.imageWidth = ''
176
newAttributes.imageWidthUnit = '%'
177
// We need the width of the image block to compare
178
- if ( width < imageBlockWidth ) {
+ if ( width && width < imageBlockWidth ) {
179
newAttributes.imageWidth = width
180
newAttributes.imageWidthUnit = 'px'
181
}
0 commit comments