Skip to content

Commit f8109d0

Browse files
committed
Fix bug that hid cinemagraphs
1 parent e1aaaf9 commit f8109d0

File tree

1 file changed

+7
-1
lines changed
  • dotcom-rendering/src/components/Card

1 file changed

+7
-1
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,12 @@ export const Card = ({
578578
isBetaContainer,
579579
});
580580

581+
const isSelfHostedVideo =
582+
media &&
583+
(media.type === 'default-video' ||
584+
media.type === 'loop-video' ||
585+
media.type === 'cinemagraph');
586+
581587
const resolvedDataLinkName =
582588
media && dataLinkName
583589
? appendLinkNameMedia(dataLinkName, media.type)
@@ -955,7 +961,7 @@ export const Card = ({
955961
/>
956962
</AvatarContainer>
957963
)}
958-
{media.type === 'loop-video' && (
964+
{isSelfHostedVideo && (
959965
<Island
960966
priority="critical"
961967
defer={{ until: 'visible' }}

0 commit comments

Comments
 (0)