user_group: Fix broken edit description functionality.

This commit fixes the currently broken feature of being
able to change the group info using the edit icon that
triggers the dialog_widget to let users edit their
group description.

Fixes #32767.
This commit is contained in:
apoorvapendse
2024-12-19 18:16:09 +05:30
committed by Tim Abbott
parent 44f5f4e129
commit ddd58b1a14

View File

@@ -1311,8 +1311,9 @@ export function initialize(): void {
}); });
}); });
function save_group_info(this: HTMLElement): void { function save_group_info(e: JQuery.ClickEvent): void {
const group = get_user_group_for_target(this); assert(e.currentTarget instanceof HTMLElement);
const group = get_user_group_for_target(e.currentTarget);
assert(group !== undefined); assert(group !== undefined);
const url = `/json/user_groups/${group.id}`; const url = `/json/user_groups/${group.id}`;
let name; let name;