diff --git a/blocks/medium-promo-block/features/medium-promo/default.jsx b/blocks/medium-promo-block/features/medium-promo/default.jsx index daa78ec9ed..aef61ddd16 100644 --- a/blocks/medium-promo-block/features/medium-promo/default.jsx +++ b/blocks/medium-promo-block/features/medium-promo/default.jsx @@ -159,7 +159,7 @@ const MediumPromo = ({ customFields }) => { return null; } - const hasAuthors = showByline ? content?.credits?.by && content?.credits?.by.length : null; + const hasAuthors = showByline ? content?.credits?.by && content?.credits?.by?.length : null; const contentDescription = showDescription ? content?.description?.basic : null; const contentHeading = showHeadline ? content?.headlines?.basic : null; const contentUrl = content?.websites?.[arcSite]?.website_url; diff --git a/blocks/top-table-list-block/features/top-table-list/_children/extra-large.jsx b/blocks/top-table-list-block/features/top-table-list/_children/extra-large.jsx index c45a5651b2..ec116ae704 100644 --- a/blocks/top-table-list-block/features/top-table-list/_children/extra-large.jsx +++ b/blocks/top-table-list-block/features/top-table-list/_children/extra-large.jsx @@ -85,7 +85,7 @@ const ExtraLarge = (props) => { const contentHeading = showHeadlineXL ? element?.headlines?.basic : null; const contentUrl = element?.websites?.[arcSite]?.website_url; const embedMarkup = playVideoInPlaceXL && getVideoFromANS(element); - const hasAuthors = showBylineXL && element?.credits?.by.length > 0; + const hasAuthors = showBylineXL && element?.credits?.by?.length > 0; const ansImage = getImageFromANS(element); const imageParams = element && ansImage diff --git a/blocks/top-table-list-block/features/top-table-list/_children/medium.jsx b/blocks/top-table-list-block/features/top-table-list/_children/medium.jsx index 8af253a0a3..11499ccd45 100644 --- a/blocks/top-table-list-block/features/top-table-list/_children/medium.jsx +++ b/blocks/top-table-list-block/features/top-table-list/_children/medium.jsx @@ -54,7 +54,7 @@ const Medium = (props) => { const showBottomBorder = typeof showBottomBorderMD === "undefined" ? true : showBottomBorderMD; - const hasAuthors = showBylineMD ? element?.credits?.by && element?.credits?.by.length : null; + const hasAuthors = showBylineMD ? element?.credits?.by && element?.credits?.by?.length : null; const contentDescription = showDescriptionMD ? element?.description?.basic : null; const contentHeading = showHeadlineMD ? element?.headlines?.basic : null; const contentUrl = element?.websites?.[arcSite]?.website_url;