-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui): Allows deselection of members in add members modal for a group #8349
fix(ui): Allows deselection of members in add members modal for a group #8349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice thank you for this! one quick suggestion but it's not blocking approval. Will merge once CI is green!
const onDeselectMember = (memberUrn: { key: string; label: React.ReactNode; value: string }) => { | ||
setInputValue(''); | ||
const newUserActors = selectedMembers.filter((user) => user !== memberUrn); | ||
const newUserActors = selectedMembers.filter((user) => user.value !== memberUrn.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice fix! I would suggest a rename of memberUrn
to just member
since it's an object we're getting back. definitely not blocking this approval though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your input! Created another PR for the variable rename suggestion since the current one was merged -
#8529
Checklist