Skip to content

Commit 41a3a66

Browse files
authored
Update dotcom-rendering/src/types/article.ts
1 parent 79f6d1d commit 41a3a66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dotcom-rendering/src/types/article.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const getGalleryMainMedia = (
7676
'model.dotcomrendering.pageElements.ImageBlockElement'
7777
) {
7878
logger.warn('Main media is not an image');
79+
return;
7980
}
8081

8182
return mainMedia;

0 commit comments

Comments
 (0)