From 63588e4a60eea032c69a629cc6eb1da156c0b078 Mon Sep 17 00:00:00 2001 From: marcelbusch Date: Wed, 11 Feb 2026 13:58:11 +0100 Subject: [PATCH] feat(media-gallery): always show delete button for media items when a media item gets deleted but is still present in a media gallery field, in the admin ui there is just a gray box shown and no way to remove the nonexisting media item this commit removes the check, if the attachment does actually exist, to display the remove-button, so nonexisting attachments can be removed --- packages/core/fields/media-gallery/index.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/core/fields/media-gallery/index.js b/packages/core/fields/media-gallery/index.js index 22a3156c..be6c2dac 100644 --- a/packages/core/fields/media-gallery/index.js +++ b/packages/core/fields/media-gallery/index.js @@ -185,13 +185,11 @@ class MediaGalleryField extends Component { ) } - { isAttachmentLoaded && ( - - ) } +