Skip to content

Commit

Permalink
fix(usermanagement): solve page load issue (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw authored Jan 30, 2024
1 parent 1d446c1 commit 19fa919
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/shared/frame/UserList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ interface FetchHookArgsType {
addUserResponse?: boolean
}

interface RoleType {
roleId: string
clientId: string
roleName: string
}

export const UserList = ({
sectionTitle,
addButtonLabel,
Expand Down Expand Up @@ -137,11 +143,11 @@ export const UserList = ({
flex: 4,
renderCell: ({ value: roles }) =>
roles.length
? roles.map((role: string) => (
? roles.map((role: RoleType) => (
<StatusTag
key={role}
key={role.roleId}
color="label"
label={role}
label={role.roleName}
className="statusTag"
/>
))
Expand Down

0 comments on commit 19fa919

Please sign in to comment.