Fix app list on group details page

This commit is contained in:
Andrew Kingston 2022-09-23 14:43:57 +01:00
parent e86b9671e4
commit 46863904ec
2 changed files with 25 additions and 1 deletions

View File

@ -42,7 +42,7 @@
$: group = $groups.find(x => x._id === groupId)
$: filtered = $users.data
$: groupApps = $apps.filter(app =>
groups.actions.getGroupAppIds(group).includes(app.appId)
groups.actions.getGroupAppIds(group).includes(`app_${app.appId}`)
)
$: {
if (loaded && !group?._id) {

View File

@ -0,0 +1,24 @@
<script>
import { Icon } from "@budibase/bbui"
export let value
$: count = Object.keys(value || {}).length
</script>
<div class="align">
<div class="spacing">
<Icon name="WebPage" />
</div>
{count}
</div>
<style>
.align {
display: flex;
overflow: hidden;
}
.spacing {
margin-right: var(--spacing-m);
}
</style>