Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: Improve roles UI #5576

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 11 commits into from
Jan 4, 2023
Prev Previous commit
Next Next commit
Improve var name
  • Loading branch information
BrunoQuaresma committed Jan 4, 2023
commit 5724c6c420496bdcad4fb6fea1b438717e361143
4 changes: 2 additions & 2 deletions site/src/components/UsersTable/UsersTableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ export const UsersTableBody: FC<
isLoading={Boolean(isUpdatingUserRoles)}
onChange={(roles) => {
// Remove the fallback role because it is only for the UI
roles = roles.filter(
rolesWithoutFallback = roles.filter(
(role) => role !== fallbackRole.name,
)
onUpdateUserRoles(user, roles)
onUpdateUserRoles(user, rolesWithoutFallback)
}}
/>
)}
Expand Down