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.

settings_preferences: Don't store 'success_msg_html' if undefined.

Varun Singhbe91b41236ed
diff --git a/web/src/settings_preferences.js b/web/src/settings_preferences.js
index 933444e2e9e..53f4913797a 100644
--- a/web/src/settings_preferences.js
+++ b/web/src/settings_preferences.js
@@ -39,7 +39,7 @@ function change_display_setting(data, $status_el, success_msg_html, sticky) {
sticky: status_is_sticky || sticky,
};
- if (sticky) {
+ if (sticky && success_msg_html) {
$status_el.data("is_sticky", true);
$status_el.data("sticky_msg_html", success_msg_html);
}