Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Refactor get_request_data_for_stream_privacy.
Sahil Batra4ac457b6d7e4
diff --git a/web/src/settings_data.ts b/web/src/settings_data.tsindex 1bb51cd3c48..b7036cc6841 100644--- a/web/src/settings_data.ts+++ b/web/src/settings_data.ts@@ -398,13 +398,15 @@ export function get_request_data_for_stream_privacy(selected_val: string): {is_web_public: false,};}- default: {+ case settings_config.stream_privacy_policy_values.web_public.code: {return {is_private: false,history_public_to_subscribers,is_web_public: true,};}+ default:+ throw new Error("Invalid value for channel privacy: " + selected_val);}}