diff --git a/client/__tests__/components/ContentLists/Automatic/__snapshots__/ArticleItem.js.snap b/client/__tests__/components/ContentLists/Automatic/__snapshots__/ArticleItem.js.snap
index 4503b669..8bab60aa 100644
--- a/client/__tests__/components/ContentLists/Automatic/__snapshots__/ArticleItem.js.snap
+++ b/client/__tests__/components/ContentLists/Automatic/__snapshots__/ArticleItem.js.snap
@@ -22,7 +22,7 @@ exports[`ContentLists/Automatic/ArticleItem renders correctly 1`] = `
- 2 years ago
+ 3 years ago
{
- count += parseInt(art.article_statistics.page_views_number);
+ if(art.article_statistics && art.article_statistics.page_views_number) {
+ count += parseInt(art.article_statistics.page_views_number);
+ }
});
return count;
@@ -72,7 +74,9 @@ export function PublisherHelpersFactory() {
let count = 0;
articles.forEach(art => {
- count += parseInt(art.comments_count);
+ if(art.comments_count) {
+ count += parseInt(art.comments_count);
+ }
});
return count;