settings_org: Remove get_widget() call and use equivalent `this`.

Manually verified here: https://github.com/zulip/zulip/pull/31940#discussion_r1798533802
This commit is contained in:
evykassirer 2024-10-14 12:36:56 -07:00 committed by Tim Abbott
parent 808c24aef2
commit 69db3c422a
1 changed files with 1 additions and 3 deletions

View File

@ -803,9 +803,7 @@ function set_up_dropdown_widget(
dropdown.hide();
event.preventDefault();
event.stopPropagation();
const dropdown_widget =
settings_components.get_widget_for_dropdown_list_settings(setting_name);
dropdown_widget.render();
this.render();
settings_components.save_discard_realm_settings_widget_status_handler(
$save_discard_widget_container,
);