From 2ad87dbff6e2c0aebfa46ddc7d7a5c3b998dba9f Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 30 Aug 2020 16:55:53 +1000 Subject: [matrix] Fix JS errors on search results page --- docs/_static/sidebar.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/_static/sidebar.js') 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) { -- cgit v1.2.3