Skip to content

"Add to groups" and "Remove from groups" do nothing or crash while the users' details are loading #3724

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

"Add to groups" and "Remove from groups" do nothing or crash while the users' details are loading. Cause: The list is loaded without memberOf (views/Users.vue:247), which is filled in later (:271-279); AddToGroupsModal.vue:52,70 and RemoveFromGroupsModal.vue:48,66 read it unguarded, and ModalWrapper.vue:87 swallows the error.

Reproduction Steps

  1. Users: select many users (or one on a slow connection).
  2. Immediately open "Add to groups", pick a group, confirm.

Expected Outcome

The users are added, or the action waits until the data is loaded.

Actual Outcome

Confirm silently does nothing (no request, no toast). With one user the modal doesn't open: Cannot read properties of undefined (reading 'some').

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions