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.
2 parents cc6456c + 41a3a66 commit 981b21bCopy full SHA for 981b21b
dotcom-rendering/src/types/article.ts
@@ -75,7 +75,8 @@ export const getGalleryMainMedia = (
75
mainMedia._type !==
76
'model.dotcomrendering.pageElements.ImageBlockElement'
77
) {
78
- throw new Error('Main media is not an image');
+ logger.warn('Main media is not an image');
79
+ return;
80
}
81
82
return mainMedia;
0 commit comments