diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-29 12:28:03 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-29 13:47:07 +0100 |
| commit | dfa894b76ee3584bf169710c78c57330c5d6ee67 (patch) | |
| tree | 41380a93e2838452236a720f27f85fb14502f56a /src/services/graphql/helpers/convert-post-preview-to-article-preview.ts | |
| parent | 29a1dec4de0aa7ba64ef068a83b1b8589fbc3ad0 (diff) | |
fix(pages,services): make thematics & topics pages usable again
When I refactored the fetchers and convertors in #f111685 I forgot to
convert WPThematicPreview and WPTopicPreview so the thematics and
topics pages was broken.
I also:
* removed the ToC added by error in #70b4f63
* fix heading styles
* fix website url in topics pages
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, }, |
