mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Fix null-safety bug in search.js
This commit is contained in:
parent
46067cf28c
commit
74d0560699
1 changed files with 13 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
||||||
(() => {
|
(() => {
|
||||||
|
|
||||||
let sidebar = document.getElementById("sidebar-nav");
|
let sidebar = document.getElementById("sidebar-nav");
|
||||||
|
|
||||||
|
if (sidebar != null) {
|
||||||
// Un-hide everything
|
// Un-hide everything
|
||||||
sidebar
|
sidebar
|
||||||
.querySelectorAll(".sidebar-entry a")
|
.querySelectorAll(".sidebar-entry a")
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
.querySelectorAll(".sidebar-sub-entries a")
|
.querySelectorAll(".sidebar-sub-entries a")
|
||||||
.forEach((subEntry) => subEntry.classList.add("hidden"));
|
.forEach((subEntry) => subEntry.classList.add("hidden"));
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let searchTypeAhead = document.getElementById("search-type-ahead");
|
let searchTypeAhead = document.getElementById("search-type-ahead");
|
||||||
let searchBox = document.getElementById("module-search");
|
let searchBox = document.getElementById("module-search");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue