Skip to content

Commit 3bf53e1

Browse files
committed
Revert "Remove an unused prop"
Don't know what I was smoking when I removed this. Even though the function doesn't use it, React uses the key. This reverts commit 937b0d3.
1 parent a8ba0e4 commit 3bf53e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

site/_core/DocsSidebar.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ import { toSlug } from './Header';
1212
export default ({ site, page, firstURL }) =>
1313
<div className="nav-docs">
1414
{getCategories(site, page.dir, firstURL).map(category =>
15-
<SidebarForCategory pageID={page.id} category={category} />
15+
<SidebarForCategory
16+
pageID={page.id}
17+
category={category}
18+
key={category.name}
19+
/>
1620
)}
1721
</div>
1822

0 commit comments

Comments
 (0)