From 9b8eced56f5e029bc92ad59b47cb9fd146b5e1d2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 11 Jan 2022 12:26:30 +0100 Subject: chore(meta): display subjects instead of thematics on Thematic pages --- src/utils/helpers/format.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils/helpers/format.ts') 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, }; -- cgit v1.2.3