Skip to content

Commit 2e2bf08

Browse files
committed
fix: update state sync logic
1 parent 0c9525e commit 2e2bf08

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

site/src/pages/UsersPage/UsersTable/UserRoleCell.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,10 @@ export function UserRoleCell({
128128

129129
if (user !== cachedUser) {
130130
const needTruncationSync =
131-
!roleDisplayInfo.hasOwner &&
132-
(user.roles.length !== cachedUser.roles.length ||
133-
user.roles.every((role, index) => role === cachedUser.roles[index]));
131+
user.roles.length !== cachedUser.roles.length ||
132+
user.roles.every((role, index) => role === cachedUser.roles[index]);
134133

135134
setCachedUser(user);
136-
console.log("huh");
137-
138-
// This isn't ever triggering, even if you update the permissions for a
139-
// user
140135
if (needTruncationSync) {
141136
setRolesToTruncate(null);
142137
}

0 commit comments

Comments
 (0)