diff options
Diffstat (limited to 'docs/_static/sidebar.js')
| -rw-r--r-- | docs/_static/sidebar.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/_static/sidebar.js b/docs/_static/sidebar.js index a08a3f21..c44518f5 100644 --- a/docs/_static/sidebar.js +++ b/docs/_static/sidebar.js @@ -23,6 +23,9 @@ class Sidebar { createCollapsableSections() { let toc = this.element.querySelector('ul'); + if (!toc) { + return + } let allReferences = toc.querySelectorAll('a.reference.internal:not([href="#"])'); for (let ref of allReferences) { |