Skip to content

Commit 79ca992

Browse files
committed
fix: Fix sidebar
1 parent f27c5f3 commit 79ca992

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

components/page/page.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ const Page = ({ page, section }) => {
3232
id="components/sidebar/sidebar.jsx"
3333
component={ Sidebar }
3434
sectionName={ section.name }
35-
pages={ section.pages().map(page => ({ url, title, anchors })) }
35+
pages={ section.pages().map(({
36+
file: {
37+
attributes: {
38+
anchors,
39+
title
40+
}
41+
},
42+
url
43+
}) => ({ url, title, anchors })) }
3644
currentPage={ url } />
3745

3846
<section className="page__content">

0 commit comments

Comments
 (0)