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.

user_profile: Update subscribe_widget instantiation.

kash2104421c5e46d1e1
diff --git a/web/src/user_profile.ts b/web/src/user_profile.ts
index 2f731549baa..364b036a111 100644
--- a/web/src/user_profile.ts
+++ b/web/src/user_profile.ts
@@ -221,8 +221,7 @@ function render_user_profile_subscribe_widget(): void {
$events_container: $("#user-profile-modal"),
unique_id_type: "number",
};
- user_profile_subscribe_widget =
- user_profile_subscribe_widget ?? new dropdown_widget.DropdownWidget(opts);
+ user_profile_subscribe_widget = new dropdown_widget.DropdownWidget(opts);
user_profile_subscribe_widget.setup();
}