From 5cd436c9a1b7465d2e9dc60994c500fb070be352 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Wed, 28 Feb 2024 22:27:48 +0100 Subject: [PATCH] fix(curriculum): fix feedback changes (#10610) Fix breadcrumb. Fix about page. --- build/curriculum.ts | 4 +++- client/src/curriculum/about.tsx | 6 +++++- client/src/curriculum/index.tsx | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) 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 ( } /> - } /> + } + /> }