diff --git a/packages/block-library/src/image/edit.js b/packages/block-library/src/image/edit.js index 9ee5101226cb2..bbca559088299 100644 --- a/packages/block-library/src/image/edit.js +++ b/packages/block-library/src/image/edit.js @@ -939,7 +939,7 @@ export default compose( [ withSelect( ( select, props ) => { const { getMedia } = select( 'core' ); const { getSettings } = select( 'core/block-editor' ); - const { id } = props.attributes; + const { attributes: { id }, isSelected } = props; const { __experimentalMediaUpload, imageSizes, @@ -948,7 +948,7 @@ export default compose( [ } = getSettings(); return { - image: id ? getMedia( id ) : null, + image: id && isSelected ? getMedia( id ) : null, maxWidth, isRTL, imageSizes,