aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/format.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/helpers/format.ts')
-rw-r--r--src/utils/helpers/format.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/helpers/format.ts b/src/utils/helpers/format.ts
index 44536dd..e628369 100644
--- a/src/utils/helpers/format.ts
+++ b/src/utils/helpers/format.ts
@@ -37,6 +37,7 @@ export const getFormattedPostPreview = (rawPost: RawArticlePreview) => {
update: modified,
};
+ const subjects = acfPosts.postsInSubject ? acfPosts.postsInSubject : [];
const thematics = acfPosts.postsInThematic ? acfPosts.postsInThematic : [];
const formattedPost: ArticlePreview = {
@@ -46,6 +47,7 @@ export const getFormattedPostPreview = (rawPost: RawArticlePreview) => {
id,
intro: contentParts.beforeMore,
slug,
+ subjects,
thematics,
title,
};