690526:1239 ADR-023-229 dynamic prompt #03
This commit is contained in:
@@ -80,7 +80,7 @@ export default function OrganizationsPage() {
|
||||
header: 'Role',
|
||||
cell: ({ row }) => {
|
||||
const roleId = row.getValue('roleId') as number;
|
||||
const role = ORGANIZATION_ROLES.find((r) => r.value === roleId?.toString());
|
||||
const role = Array.isArray(ORGANIZATION_ROLES) ? ORGANIZATION_ROLES.find((r) => r.value === roleId?.toString()) : undefined;
|
||||
return role ? role.label : '-';
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user