From b58c2a13561f8d139dcd13317d68ee790cd51351 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 5 Jun 2023 20:38:54 +0100 Subject: [PATCH] Fix roadmap json --- src/pages/[roadmapId]/index.json.ts | 2 +- src/pages/best-practices/[bestPracticeId]/index.json.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/[roadmapId]/index.json.ts b/src/pages/[roadmapId]/index.json.ts index 58d077e3e..ff2620f54 100644 --- a/src/pages/[roadmapId]/index.json.ts +++ b/src/pages/[roadmapId]/index.json.ts @@ -14,7 +14,7 @@ export async function getStaticPaths() { roadmapId, }, props: { - roadmapJson: roadmapJson, + roadmapJson: roadmapJson?.default, }, }; }); diff --git a/src/pages/best-practices/[bestPracticeId]/index.json.ts b/src/pages/best-practices/[bestPracticeId]/index.json.ts index 96ab37aff..20cab9619 100644 --- a/src/pages/best-practices/[bestPracticeId]/index.json.ts +++ b/src/pages/best-practices/[bestPracticeId]/index.json.ts @@ -17,7 +17,7 @@ export async function getStaticPaths() { bestPracticeId, }, props: { - bestPracticeJson: bestPracticeJson, + bestPracticeJson: bestPracticeJson?.default, }, }; });