remove conditional chain

This commit is contained in:
Martin McKeaveney 2024-09-09 18:19:10 +01:00
parent 96fbc8fff0
commit 8b26ab422f
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@
name: user.firstName ? user.firstName + " " + user.lastName : "", name: user.firstName ? user.firstName + " " + user.lastName : "",
userGroups, userGroups,
__selectable: __selectable:
role?.value === Constants.BudibaseRoles.Owner ? false : undefined, role.value === Constants.BudibaseRoles.Owner ? false : undefined,
apps: [...new Set(Object.keys(user.roles))], apps: [...new Set(Object.keys(user.roles))],
access: role.sortOrder, access: role.sortOrder,
} }