1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Fix inherits role options

This commit is contained in:
Mel O'Hagan 2022-10-06 18:23:02 +01:00
parent 21c5287290
commit 5d33c6ebc9

View file

@ -37,7 +37,6 @@
const id = event?.detail
const role = $roles.find(role => role._id === id)
if (role) {
console.log("INH ", role.inherits)
selectedRole = {
...role,
inherits: role.inherits ?? "",
@ -125,7 +124,7 @@
<Select
label="Inherits Role"
bind:value={selectedRole.inherits}
options={$roles}
options={selectedRole._id === "BASIC" ? $roles : otherRoles}
getOptionValue={role => role._id}
getOptionLabel={role => role.name}
disabled={builtInRoles.includes(selectedRole.name)}