diff --git a/build/curriculum.ts b/build/curriculum.ts index e154ac763077..1a2ed232e58f 100644 --- a/build/curriculum.ts +++ b/build/curriculum.ts @@ -170,13 +170,15 @@ async function buildParents(url: string): Promise { return { url, title }; }); const parents = breadcrumbPath(url, index); - if (!parents) { + if (parents) { const { url, title } = index[0]; if (parents[0]?.uri !== url) { return [{ uri: url, title }, ...parents]; } return parents; } + + return []; } async function readCurriculumPage( diff --git a/client/src/curriculum/about.tsx b/client/src/curriculum/about.tsx index e41ffe0a5c21..a587adae6b09 100644 --- a/client/src/curriculum/about.tsx +++ b/client/src/curriculum/about.tsx @@ -13,7 +13,11 @@ export function CurriculumAbout(props: HydrationData) { return (

diff --git a/client/src/curriculum/index.tsx b/client/src/curriculum/index.tsx index 777ad4e05a63..7fad95c7ad29 100644 --- a/client/src/curriculum/index.tsx +++ b/client/src/curriculum/index.tsx @@ -12,7 +12,10 @@ export function Curriculum(appProps: HydrationData) { return ( } /> - } /> + } + /> }