From 46863904ec74dd6660f04268a79c3e4d17d073a8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 23 Sep 2022 14:43:57 +0100 Subject: [PATCH] Fix app list on group details page --- .../portal/manage/groups/[groupId].svelte | 2 +- .../_components/GroupAppsTableRenderer.svelte | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte index c64b7b8bf6..b0ff17cc53 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte @@ -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) { diff --git a/packages/builder/src/pages/builder/portal/manage/groups/_components/GroupAppsTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/groups/_components/GroupAppsTableRenderer.svelte index e69de29bb2..51f4d7f77c 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/_components/GroupAppsTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/manage/groups/_components/GroupAppsTableRenderer.svelte @@ -0,0 +1,24 @@ + + +
+
+ +
+ {count} +
+ +