diff --git a/app/javascript/mastodon/components/status/attachments.tsx b/app/javascript/mastodon/components/status/attachments.tsx index bde46e53641..a91670adc73 100644 --- a/app/javascript/mastodon/components/status/attachments.tsx +++ b/app/javascript/mastodon/components/status/attachments.tsx @@ -142,11 +142,16 @@ const MediaAttachments: React.FC<{ dispatch( openModal({ modalType: 'MEDIA', - modalProps: { statusId, media: attachment, index, lang: language }, + modalProps: { + statusId, + media: immutableAttachments, + index, + lang: language, + }, }), ); }, - [attachment, dispatch, language, statusId], + [immutableAttachments, dispatch, language, statusId], ); const handleOpenVideo = useCallback( (options: {