Skip to content

Commit

Permalink
Image: Remove temporary image check for rendering controls (#60212)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent 3d3f2de commit 6f90812
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 6f90812

Please sign in to comment.