aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/post.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/graphql/post.ts')
-rw-r--r--src/services/graphql/post.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/graphql/post.ts b/src/services/graphql/post.ts
index c7144fc..2ce918b 100644
--- a/src/services/graphql/post.ts
+++ b/src/services/graphql/post.ts
@@ -108,7 +108,7 @@ export const getPostBySlug: GetPostByReturn = async (slug: string) => {
const content = rawPost.postBy.contentParts.afterMore;
const featuredImage = rawPost.postBy.featuredImage
? rawPost.postBy.featuredImage.node
- : {};
+ : null;
const date = {
publication: rawPost.postBy.date,
update: rawPost.postBy.modified,
@@ -117,8 +117,8 @@ export const getPostBySlug: GetPostByReturn = async (slug: string) => {
const subjects = rawPost.postBy.acfPosts.postsInSubject
? rawPost.postBy.acfPosts.postsInSubject
: [];
- const thematics = rawPost.postBy.acfPosts.postsInThematics
- ? rawPost.postBy.acfPosts.postsInThematics
+ const thematics = rawPost.postBy.acfPosts.postsInThematic
+ ? rawPost.postBy.acfPosts.postsInThematic
: [];
const formattedPost: Article = {