mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
groups-ui: Fix members list not updating when creating groups.
On removing a user or group pill from input, the user or group
was not being removed from the table. This was because of
onPillRemove not being set for the pill widget as it was
removed by mistake while doing other changes in ec65dad063.
This commit is contained in:
@@ -122,10 +122,12 @@ export function create({
|
||||
}
|
||||
|
||||
if (onPillRemoveAction) {
|
||||
void (async () => {
|
||||
const user_ids = await get_pill_user_ids(pill_widget);
|
||||
onPillRemoveAction(user_ids, get_pill_group_ids(pill_widget));
|
||||
})();
|
||||
pill_widget.onPillRemove(() => {
|
||||
void (async () => {
|
||||
const user_ids = await get_pill_user_ids(pill_widget);
|
||||
onPillRemoveAction(user_ids, get_pill_group_ids(pill_widget));
|
||||
})();
|
||||
});
|
||||
}
|
||||
|
||||
function get_users(): User[] {
|
||||
|
||||
Reference in New Issue
Block a user