settings_components: Rename subsection to $subsection_elem.

This commit is contained in:
afeefuddin 2024-05-21 01:12:28 +05:30 committed by Anders Kaseorg
parent 4a652ed38d
commit dbd44bff5c
1 changed files with 2 additions and 2 deletions

View File

@ -900,14 +900,14 @@ export function check_property_changed(
} }
export function populate_data_for_request( export function populate_data_for_request(
subsection: JQuery, $subsection_elem: JQuery,
for_realm_default_settings: boolean, for_realm_default_settings: boolean,
sub: StreamSubscription | undefined, sub: StreamSubscription | undefined,
group: UserGroup | undefined, group: UserGroup | undefined,
custom_profile_field?: CustomProfileField | undefined, custom_profile_field?: CustomProfileField | undefined,
): Record<string, string | boolean | number> { ): Record<string, string | boolean | number> {
let data: Record<string, string | boolean | number> = {}; let data: Record<string, string | boolean | number> = {};
const properties_elements = get_subsection_property_elements(subsection); const properties_elements = get_subsection_property_elements($subsection_elem);
for (const input_elem of properties_elements) { for (const input_elem of properties_elements) {
const $input_elem = $(input_elem); const $input_elem = $(input_elem);
if ( if (