1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-18 13:48:58 +02:00

fix: use name instead of id

This commit is contained in:
Nuno Góis 2023-11-23 11:56:47 +00:00
parent a81b3853cd
commit 3354bb167d
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -13,8 +13,8 @@ import cloneDeep from 'lodash.clonedeep';
export const getRoleKey = (permission: IPermission): string => {
return permission.environment
? `${permission.id}-${permission.environment}`
: `${permission.id}`;
? `${permission.name}-${permission.environment}`
: `${permission.name}`;
};
export const permissionsToCheckedPermissions = (