Skip to content

Quick fix: use custom getFns for user-related keys in superadmin #2649

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

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

emma-sg
Copy link
Member

@emma-sg emma-sg commented Jun 4, 2025

Changes

Users are stored as a record of emails to full user objects, so we don't statically know the keys of the orgList.users object at fuse init time. Instead, we can use Object.values to turn the record into an array that we can then map to get the desired values from the user objects.

users are stored as a record of emails to full user objects, so we don't
statically know the keys of the `orgList.users` object at fuse init
time. instead, we can use `Object.values` to turn the record into an
array that we can then `map` to get the desired values from the user
objects.
@emma-sg emma-sg requested a review from ikreymer June 4, 2025 22:00
@emma-sg
Copy link
Member Author

emma-sg commented Jun 5, 2025

Would like to get this out so it can be used internally — gonna just merge, I can't imagine this is going to break anything.

@emma-sg emma-sg merged commit 54d29ae into main Jun 5, 2025
27 checks passed
@emma-sg emma-sg deleted the frontend-fix-superadmin-user-search branch June 5, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant