Skip to content

Commit f10dcd0

Browse files
committed
Add comment to explain why we add a placeholder for missing main media
1 parent 637cc5d commit f10dcd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dotcom-rendering/src/components/MainMediaGallery.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const MainMediaGallery = ({
3232
format,
3333
renderingTarget,
3434
}: Props) => {
35+
// This is to support some galleries created in 2007 where mainMedia is missing
3536
if (isUndefined(mainMedia)) {
3637
return <div css={styles}></div>;
3738
}

0 commit comments

Comments
 (0)