Fix inherits role options

This commit is contained in:
Mel O'Hagan 2022-10-06 18:23:02 +01:00
parent 21c5287290
commit 5d33c6ebc9
1 changed files with 1 additions and 2 deletions

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)}