Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
realm_domains: Populate the table only if the modal is open.
Ganesh Pawar914712beab2d
diff --git a/static/js/settings_realm_domains.js b/static/js/settings_realm_domains.jsindex d4b34d53a61..0a5a4bb46c1 100644--- a/static/js/settings_realm_domains.js+++ b/static/js/settings_realm_domains.js@@ -10,6 +10,11 @@ import {page_params} from "./page_params";import * as ui_report from "./ui_report";export function populate_realm_domains_table(realm_domains) {+ // Don't populate the table if the realm domains modal isn't open.+ if ($("#realm_domains_modal").length === 0) {+ return;+ }+const $realm_domains_table_body = $("#realm_domains_table tbody").expectOne();$realm_domains_table_body.find("tr").remove();