diff --git a/app/soapbox/components/status-media.tsx b/app/soapbox/components/status-media.tsx index 71177cb12..3dc625c4d 100644 --- a/app/soapbox/components/status-media.tsx +++ b/app/soapbox/components/status-media.tsx @@ -173,7 +173,16 @@ const StatusMedia: React.FC = ({ ); } - return media; + if (media) { + return ( + // eslint-disable-next-line jsx-a11y/no-static-element-interactions +
e.stopPropagation()}> + {media} +
+ ); + } else { + return null; + } }; export default StatusMedia;