summaryrefslogtreecommitdiffstats
path: root/src/services/graphql/topics.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-23 19:32:42 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-23 20:53:58 +0200
commitc51b5d9a5f217f8aa59c4bdcb04eb3c87f5129b3 (patch)
treea4ce7f77c2b1742119eebf818d9b97db7ed1e310 /src/services/graphql/topics.ts
parent5ebd7c14f7303a0feb8ec1d902ecd0e287d929c3 (diff)
fix: ensure all topics/thematics have the base url
Diffstat (limited to 'src/services/graphql/topics.ts')
-rw-r--r--src/services/graphql/topics.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/graphql/topics.ts b/src/services/graphql/topics.ts
index 277580f..0b1971b 100644
--- a/src/services/graphql/topics.ts
+++ b/src/services/graphql/topics.ts
@@ -80,7 +80,7 @@ export const getTopicFromRawData = (data: RawTopic): Topic => {
posts.forEach((post) => {
if (post.acfPosts.postsInThematic) {
post.acfPosts.postsInThematic.forEach((thematic) =>
- thematics.push(getPageLinkFromRawData(thematic))
+ thematics.push(getPageLinkFromRawData(thematic, 'thematic'))
);
}
});