diff --git a/src/components/DocPage/DocPage.tsx b/src/components/DocPage/DocPage.tsx index ca4f7ee9..ab12471c 100644 --- a/src/components/DocPage/DocPage.tsx +++ b/src/components/DocPage/DocPage.tsx @@ -520,7 +520,7 @@ class DocPage extends React.Component { private renderTocNavPanel() { const {toc, singlePage, router, fullScreen} = this.props; - if (singlePage) { + if (!toc || singlePage) { return null; }