formatting

This commit is contained in:
Peter Clement 2023-09-05 10:13:23 +01:00
parent c16fd53b0a
commit 9c30d79093
1 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,10 @@
return $apps.length
} else {
return sdk.users.hasAppBuilderPermissions(row)
? row.builder.apps.length +
Object.keys(row.roles || {}).filter(appId =>
row.builder.apps.includes(appId)
).length
? row?.builder?.apps?.length +
Object.keys(row.roles || {}).filter(appId => {
row?.builder?.apps?.includes(appId)
}).length
: value?.length || 0
}
}