diff options
Diffstat (limited to 'src/services/graphql/helpers/convert-post-preview-to-article-preview.ts')
| -rw-r--r-- | src/services/graphql/helpers/convert-post-preview-to-article-preview.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/graphql/helpers/convert-post-preview-to-article-preview.ts b/src/services/graphql/helpers/convert-post-preview-to-article-preview.ts index 78777eb..1998d79 100644 --- a/src/services/graphql/helpers/convert-post-preview-to-article-preview.ts +++ b/src/services/graphql/helpers/convert-post-preview-to-article-preview.ts @@ -1,5 +1,5 @@ import type { ArticlePreview, WPPostPreview } from '../../../types'; -import { convertTaxonomyToPageLink } from './convert-taxonomy-to-page-link'; +import { convertWPThematicPreviewToPageLink } from './convert-taxonomy-to-page-link'; import { convertWPImgToImg } from './convert-wp-image-to-img'; export const convertPostPreviewToArticlePreview = ({ @@ -26,7 +26,7 @@ export const convertPostPreviewToArticlePreview = ({ }, thematics: acfPosts && 'postsInThematic' in acfPosts - ? acfPosts.postsInThematic?.map(convertTaxonomyToPageLink) + ? acfPosts.postsInThematic?.map(convertWPThematicPreviewToPageLink) : undefined, wordsCount: info.wordsCount, }, |
