Fix frontend issues due power role missing

This commit is contained in:
Adria Navarro 2024-10-24 16:08:04 +02:00
parent f279a1716d
commit 288517df96
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@
$: buttonLabel = readableRole ? `Access: ${readableRole}` : "Access"
$: highlight = roleMismatch || selectedRole === Roles.PUBLIC
$: builtInRoles = builtins.map(roleId => $roles.find(x => x._id === roleId))
$: builtInRoles = builtins
.map(roleId => $roles.find(x => x._id === roleId))
.filter(r => !!r)
$: customRoles = $roles
.filter(x => !builtins.includes(x._id))
.slice()