Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
playground_links_popover: Return if 'playground_info' is undefined.
Varun Singhe246db6709b9
diff --git a/web/src/playground_links_popover.ts b/web/src/playground_links_popover.tsindex 82a815295a1..7407c2bd3ed 100644--- a/web/src/playground_links_popover.ts+++ b/web/src/playground_links_popover.ts@@ -101,6 +101,9 @@ function register_click_handlers(): void {const playground_info = realm_playground.get_playground_info_for_languages($codehilite_div.data("code-language"),);+ if (playground_info === undefined) {+ return;+ }// We do the code extraction here and set the target href expanding// the url_template with the extracted code. Depending on whether// the language has multiple playground links configured, a popover