settings_components: Fix HTMLSelectOneElement selector.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-03 15:35:07 -07:00 committed by Anders Kaseorg
parent 40440248e6
commit d4841bbeff
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ function read_select_field_data_from_form(
function read_external_account_field_data($profile_field_form: JQuery): FieldData { function read_external_account_field_data($profile_field_form: JQuery): FieldData {
const field_data: FieldData = {}; const field_data: FieldData = {};
field_data.subtype = $profile_field_form field_data.subtype = $profile_field_form
.find<HTMLSelectOneElement>("select[name=external_acc_field_type]") .find<HTMLSelectOneElement>("select:not([multiple])[name=external_acc_field_type]")
.val()!; .val()!;
if (field_data.subtype === "custom") { if (field_data.subtype === "custom") {
field_data.url_pattern = $profile_field_form field_data.url_pattern = $profile_field_form