From a6cc9acb223688b00e7a7678e47057d4edd56f2f Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Thu, 8 Feb 2024 19:25:18 +0530 Subject: [PATCH] settings_components: Refactor code in check_property_changed. This commit updates code in check_property_changed to handle all time limit settings in the same switch case. --- web/src/settings_components.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/src/settings_components.js b/web/src/settings_components.js index 62dffa0bb8..4860ab9ca4 100644 --- a/web/src/settings_components.js +++ b/web/src/settings_components.js @@ -537,8 +537,6 @@ export function check_property_changed(elem, for_realm_default_settings, sub, gr proposed_val = get_dropdown_list_widget_setting_value($elem); break; case "email_notifications_batching_period_seconds": - proposed_val = get_time_limit_setting_value($elem, false); - break; case "realm_message_content_edit_limit_seconds": case "realm_message_content_delete_limit_seconds": case "realm_move_messages_between_streams_limit_seconds":