We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eda3f0f commit 93a0a90Copy full SHA for 93a0a90
dotcom-rendering/src/model/enhanceCards.ts
@@ -211,6 +211,10 @@ export const getActiveMediaAtom = (
211
cardTrailImage,
212
);
213
214
+ /**
215
+ * Each version of a media atom will contain assets for self-hosted OR YouTube, but not both.
216
+ * Therefore, we check the platform of the first asset and assume the rest are the same.
217
+ */
218
if (assets[0]?.platform === 'Url') {
219
/**
220
* Take one source for each supported video file type.
0 commit comments