Skip to content

Commit db9245f

Browse files
committed
Remove duplicate roleLabelFor/identityLabelFor in UsersTable
The merge duplicated both helper functions verbatim, which TypeScript flags as a duplicate implementation and fails the build. Keep a single copy of each; behavior is unchanged.
1 parent 848a654 commit db9245f

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

web/src/app/(portal)/admin/users/management/UsersTable.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,6 @@ export function UsersTable({
8989
}
9090
const selectedUser = users.find((user) => user.id === selectedId) ?? null;
9191

92-
function roleLabelFor(value: string): string {
93-
if (value === "all") return "All roles";
94-
return rolesCatalog.find((role) => role.id === value)?.name ?? value;
95-
}
96-
97-
function identityLabelFor(value: string): string {
98-
return value === "all" ? "All external identities" : identitySourceLabel(value);
99-
}
100-
10192
function resetSelection() {
10293
setSelectedId(null);
10394
expandedRow.clear();

0 commit comments

Comments
 (0)