From 2f9bca93fb909b938d7083d5f8384173e658c883 Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Mon, 6 Apr 2026 15:49:06 +0400 Subject: [PATCH] chore: add extra ? for staging images --- src/components/ArticleSection/ArticleSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` : '' }