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, }, }; });