Skip to content

Commit

Permalink
Image: Remove temporary image check for rendering controls (WordPress…
Browse files Browse the repository at this point in the history
…#60212)


Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
  • Loading branch information
3 people authored and carstingaxion committed Mar 27, 2024
1 parent 25a334a commit 41e9e5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,9 +934,7 @@ export default function Image( {

return (
<>
{ /* Hide controls during upload to avoid component remount,
which causes duplicated image upload. */ }
{ ! temporaryURL && controls }
{ controls }
{ img }

<Caption
Expand Down

0 comments on commit 41e9e5a

Please sign in to comment.