Fix frontend issues due power role missing
This commit is contained in:
parent
f279a1716d
commit
288517df96
|
@ -34,7 +34,9 @@
|
||||||
$: buttonLabel = readableRole ? `Access: ${readableRole}` : "Access"
|
$: buttonLabel = readableRole ? `Access: ${readableRole}` : "Access"
|
||||||
$: highlight = roleMismatch || selectedRole === Roles.PUBLIC
|
$: 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
|
$: customRoles = $roles
|
||||||
.filter(x => !builtins.includes(x._id))
|
.filter(x => !builtins.includes(x._id))
|
||||||
.slice()
|
.slice()
|
||||||
|
|
Loading…
Reference in New Issue