From 01e72f3255374724f6b90e09639f2712b97d1706 Mon Sep 17 00:00:00 2001 From: nahbee10 Date: Thu, 12 Dec 2024 17:21:35 +0900 Subject: [PATCH] revert subsection removal on side nav --- src/modules/side-nav/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/side-nav/api.ts b/src/modules/side-nav/api.ts index 8b8c36114..c6b656c23 100644 --- a/src/modules/side-nav/api.ts +++ b/src/modules/side-nav/api.ts @@ -30,7 +30,6 @@ type SideNavApiResponse = { html_url: string; name: string; position: number; - parent_section_id: number | null; }[]; }; @@ -45,7 +44,7 @@ const sanitizeResponse = (response: SideNavApiResponse): SideNavData => { const categories = response.categories.map((category) => { const sections = response.sections - .filter((section) => section.category_id === category.id && !section.parent_section_id) + .filter((section) => section.category_id === category.id) .map((section) => { const articles = response.articles .filter((article) => article.section_id === section.id)