From 4b3b71a7e44a01550fe4d7c0be67b72aae109e73 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 16 Dec 2021 15:01:57 +0100 Subject: chore: fix typo --- src/services/graphql/blog.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/services/graphql/blog.ts') diff --git a/src/services/graphql/blog.ts b/src/services/graphql/blog.ts index 127eb1e..6b92b5a 100644 --- a/src/services/graphql/blog.ts +++ b/src/services/graphql/blog.ts @@ -1,6 +1,6 @@ import { ArticlePreview } from '@ts/types/articles'; import { - AllPostsSlugReponse, + AllPostsSlugResponse, FetchAllPostsSlugReturn, FetchPostsListReturn, GetPostsListReturn, @@ -111,8 +111,8 @@ export const getPublishedPosts: GetPostsListReturn = async ({ ? acfPosts.postsInSubject : []; const thematics = - acfPosts.postsInThematics && acfPosts.postsInThematics?.length > 0 - ? acfPosts.postsInThematics + acfPosts.postsInThematic && acfPosts.postsInThematic?.length > 0 + ? acfPosts.postsInThematic : []; return { @@ -146,7 +146,7 @@ export const fetchAllPostsSlug: FetchAllPostsSlugReturn = async () => { `; try { - const response: AllPostsSlugReponse = await client.request(query); + const response: AllPostsSlugResponse = await client.request(query); return response.posts.nodes; } catch (error) { console.error(JSON.stringify(error, undefined, 2)); -- cgit v1.2.3