Skip to content

Commit 145ff06

Browse files
authored
Image: Avoid stale URL when reselecting the same image from the library (#69985)
Unlinked contributors: T4ngml. Co-authored-by: Mamaduka <[email protected]>
1 parent fcb906f commit 145ff06

File tree

1 file changed

+0
-4
lines changed
  • packages/block-library/src/image

1 file changed

+0
-4
lines changed

packages/block-library/src/image/edit.js

-4
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,6 @@ export function ImageEdit( {
262262
additionalAttributes = {
263263
sizeSlug: newSize,
264264
};
265-
} else {
266-
// Keep the same url when selecting the same file, so "Resolution"
267-
// option is not changed.
268-
additionalAttributes = { url };
269265
}
270266

271267
// Check if default link setting should be used.

0 commit comments

Comments
 (0)