mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-12 16:35:57 -05:00
Status redesign: Fixes bug with media modal (#40423)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user