[matrix] Fix JS errors on search results page

This commit is contained in:
Josh
2020-12-18 21:18:57 -05:00
committed by Rapptz
parent 15587eeef1
commit 2ad87dbff6
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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) {