mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
settings: Don't show save-discard widget unnecessarily.
Previously, save discard buttons were shown even when changing only the order of pills in the widget. This commit updates get_group_setting_widget_value to return member and subgroup IDs in sorted order, as member and subgroup IDs in original values are also sorted so the save-discard buttons are not visible when only order is changed.
This commit is contained in:
parent
0053c64f37
commit
beec3726dd
@ -914,8 +914,8 @@ export function get_group_setting_widget_value(
|
||||
}
|
||||
|
||||
return {
|
||||
direct_subgroups,
|
||||
direct_members,
|
||||
direct_subgroups: direct_subgroups.sort(),
|
||||
direct_members: direct_members.sort(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user