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: Remove unnecessary JSON-encoding of integers.

Tim Abbott93c28f8c7bab
diff --git a/static/js/settings_org.js b/static/js/settings_org.js
index 3ec49b995b3..6e28a4b2f6d 100644
--- a/static/js/settings_org.js
+++ b/static/js/settings_org.js
@@ -778,11 +778,10 @@ export function build_page() {
).seconds;
}
} else if (subsection === "notifications") {
- data.notifications_stream_id = JSON.stringify(
- Number.parseInt(notifications_stream_widget.value(), 10),
- );
- data.signup_notifications_stream_id = JSON.stringify(
- Number.parseInt(signup_notifications_stream_widget.value(), 10),
+ data.notifications_stream_id = Number.parseInt(notifications_stream_widget.value(), 10);
+ data.signup_notifications_stream_id = Number.parseInt(
+ signup_notifications_stream_widget.value(),
+ 10,
);
} else if (subsection === "message_retention") {
const message_retention_setting_value = $("#id_realm_message_retention_setting").val();