diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte index f21a6b1da8..eb17260995 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/TagsTableRenderer.svelte @@ -4,8 +4,9 @@ const displayLimit = 5 - $: tags = value?.slice(0, displayLimit) ?? [] - $: leftover = (value?.length ?? 0) - tags.length + $: roles = value?.filter(role => role != null) ?? [] + $: tags = roles.slice(0, displayLimit) + $: leftover = roles.length - tags.length