Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Fix TypeError on missing article pages.

Anders Kaseorgc2458bfe9427
diff --git a/web/src/portico/help.js b/web/src/portico/help.js
index a907afad54c..c2666c89ca9 100644
--- a/web/src/portico/help.js
+++ b/web/src/portico/help.js
@@ -181,4 +181,4 @@ window.addEventListener("popstate", () => {
$("body").addClass("noscroll");
-$(".highlighted")[0].scrollIntoView({block: "center"});
+$(".highlighted")[0]?.scrollIntoView({block: "center"});