group_settings: Fix group settings panel title not updating.

Earlier in group settings, clicking a non participating group from
"all groups" and then clicking "your group" would reset the right
panel but the panel title would remain same as that of the non
participating group.

This commit fixes the behaviour and resets the panel title to
default.
This commit is contained in:
Pratik Chanda 2024-03-06 21:35:08 +05:30 committed by Tim Abbott
parent a504753961
commit 0c8845cec5
1 changed files with 1 additions and 4 deletions

View File

@ -670,10 +670,7 @@ export function maybe_reset_right_panel(groups_list_data) {
const group_ids = new Set(groups_list_data.map((group) => group.id));
if (!group_ids.has(active_group_id)) {
$(".right .settings").hide();
$(".nothing-selected").show();
$(".group-row.active").removeClass("active");
reset_active_group_id();
show_user_group_settings_pane.nothing_selected();
}
}