From 8849dbd58d87f650ebcfb0df4e9974734a7b5153 Mon Sep 17 00:00:00 2001 From: times-tools Date: Thu, 28 Nov 2024 13:03:50 +0000 Subject: [PATCH] feat(TMRS-482): linting and test update --- packages/article-extras/src/article-extras.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/article-extras/src/article-extras.js b/packages/article-extras/src/article-extras.js index 3979960786..7c3021dbfd 100644 --- a/packages/article-extras/src/article-extras.js +++ b/packages/article-extras/src/article-extras.js @@ -61,8 +61,10 @@ const ArticleExtras = ({ return null; }; - - const { categoryArticles, parentCategoryArticles } = categorisedArticles; + const categoryArticles = + (categorisedArticles && categorisedArticles.categoryArticles) || null; + const parentCategoryArticles = + (categorisedArticles && categorisedArticles.parentCategoryArticles) || null; /* Nativo insert Sponsored Articles after the div#sponsored-article element. They are not able to insert directly into that element hence the container div */ const sponsoredArticlesAndRelatedArticles = (