From 0c8845cec53ef13af0e7132a9507026f5394bca3 Mon Sep 17 00:00:00 2001 From: Pratik Chanda Date: Wed, 6 Mar 2024 21:35:08 +0530 Subject: [PATCH] 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. --- web/src/user_group_edit.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/src/user_group_edit.js b/web/src/user_group_edit.js index fc86238e3b..bfa88f7c13 100644 --- a/web/src/user_group_edit.js +++ b/web/src/user_group_edit.js @@ -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(); } }