diff --git a/src/components/ArticleSection/ArticleSection.tsx b/src/components/ArticleSection/ArticleSection.tsx index ffb5d49..09d5f7d 100644 --- a/src/components/ArticleSection/ArticleSection.tsx +++ b/src/components/ArticleSection/ArticleSection.tsx @@ -78,7 +78,7 @@ const ArticleSection = forwardRef( bgImage={ article?.coverImage ? isRecommendedOrFeatured - ? `${process.env.NEXT_PUBLIC_STRAPI}${article?.coverImage.data.attributes.url}` + ? `${process.env.NEXT_PUBLIC_STRAPI}${article?.coverImage?.data?.attributes?.url}` : `${process.env.NEXT_PUBLIC_STRAPI}${article?.coverImage?.url}` : '' }