Skip to content

Commit

Permalink
added id for keeping the selection (keycloak#35870)
Browse files Browse the repository at this point in the history
fixes: keycloak#35863

Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit authored Dec 17, 2024
1 parent 3cdbbc5 commit efb27f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/apps/admin-ui/src/components/role-mapping/RoleMapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ export const mapRoles = (
) => [
...(hide
? assignedRoles.map((row) => ({
id: row.role.id,
...row,
role: {
...row.role,
isInherited: false,
},
}))
: effectiveRoles.map((row) => ({
id: row.role.id,
...row,
role: {
...row.role,
Expand Down Expand Up @@ -141,6 +143,14 @@ export const RoleMapping = ({
)
.flat();

const test = [
...mapRoles(
[...clientMapping, ...realmRolesMapping],
[...effectiveClientRoles, ...effectiveRoles],
hide,
),
];
console.log(test);
return [
...mapRoles(
[...clientMapping, ...realmRolesMapping],
Expand Down

0 comments on commit efb27f6

Please sign in to comment.