Skip to content

Commit

Permalink
fix: not render navigation with empty toc
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Sep 28, 2023
1 parent 53900f1 commit 2927659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DocPage/DocPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class DocPage extends React.Component<DocPageInnerProps, DocPageState> {
private renderTocNavPanel() {
const {toc, singlePage, router, fullScreen} = this.props;

if (singlePage) {
+ if (!toc || singlePage) {
return null;
}

Expand Down

0 comments on commit 2927659

Please sign in to comment.