mirror of https://github.com/zulip/zulip.git
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:
parent
a504753961
commit
0c8845cec5
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue