Skip to content

Commit

Permalink
handle null result from queryselector (pydata#1683)
Browse files Browse the repository at this point in the history
fix queryselector
  • Loading branch information
drammock authored Jan 28, 2024
1 parent c04f042 commit 11af3fc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ function fixMoreLinksInMobileSidebar() {
const dropdown = document.querySelector(
".bd-sidebar-primary [id^=pst-nav-more-links]"
);
dropdown.classList.add("show");
if (dropdown !== null) {
dropdown.classList.add("show");
}
}

/*******************************************************************************
Expand Down

0 comments on commit 11af3fc

Please sign in to comment.