Skip to content

Commit

Permalink
revert subsection removal on side nav
Browse files Browse the repository at this point in the history
  • Loading branch information
nahbee10 committed Dec 12, 2024
1 parent 0a0a136 commit 01e72f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/side-nav/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type SideNavApiResponse = {
html_url: string;
name: string;
position: number;
parent_section_id: number | null;
}[];
};

Expand All @@ -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)
Expand Down

0 comments on commit 01e72f3

Please sign in to comment.