mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41: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");
|
||||
|
||||
if (sidebar != null) {
|
||||
// Un-hide everything
|
||||
sidebar
|
||||
.querySelectorAll(".sidebar-entry a")
|
||||
|
@ -19,6 +20,7 @@
|
|||
.querySelectorAll(".sidebar-sub-entries a")
|
||||
.forEach((subEntry) => subEntry.classList.add("hidden"));
|
||||
});
|
||||
}
|
||||
|
||||
let searchTypeAhead = document.getElementById("search-type-ahead");
|
||||
let searchBox = document.getElementById("module-search");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue