Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Fix live-update exception when viewing channels tab.
Tim Abbott5d88ff6676c2
diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex 92a8448ec44..8966296358a 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -102,6 +102,10 @@ export function update_profile_modal_ui(user, new_data) {if (!(modals.any_active() && modals.active_modal() === "#user-profile-modal")) {return;}+ if (original_values?.user_id === undefined) {+ // This occurs if say, the "channel" tab is open.+ return;+ }const current_user_id = Number.parseInt(original_values.user_id, 10);if (current_user_id !== user.user_id) {return;