Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 0d2da34

Browse files
fix: Use location from props in learn.tsx.
1 parent a829169 commit 0d2da34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/learn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class LearnPage extends React.Component<Props> {
3737
}
3838

3939
render() {
40-
const { data } = this.props;
40+
const { data, location } = this.props;
4141
const currentPage = location.pathname.split('/').pop();
4242
const { activePage, previousPage, nextPage, navigationSections } = findActive(data.sections.group, currentPage);
4343
if (!activePage) {

0 commit comments

Comments
 (0)