We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c9525e commit 2e2bf08Copy full SHA for 2e2bf08
site/src/pages/UsersPage/UsersTable/UserRoleCell.tsx
@@ -128,15 +128,10 @@ export function UserRoleCell({
128
129
if (user !== cachedUser) {
130
const needTruncationSync =
131
- !roleDisplayInfo.hasOwner &&
132
- (user.roles.length !== cachedUser.roles.length ||
133
- user.roles.every((role, index) => role === cachedUser.roles[index]));
+ user.roles.length !== cachedUser.roles.length ||
+ user.roles.every((role, index) => role === cachedUser.roles[index]);
134
135
setCachedUser(user);
136
- console.log("huh");
137
-
138
- // This isn't ever triggering, even if you update the permissions for a
139
- // user
140
if (needTruncationSync) {
141
setRolesToTruncate(null);
142
}
0 commit comments