From 877bc7b679c8054bda29c9586085cbbf53fb7bc8 Mon Sep 17 00:00:00 2001 From: v8tenko Date: Thu, 28 Sep 2023 19:45:33 +0300 Subject: [PATCH] fix: not render navigation with empty toc --- src/components/DocPage/DocPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }