diff --git a/packages/bbui/src/Table/ArrayRenderer.svelte b/packages/bbui/src/Table/ArrayRenderer.svelte index 6c1df3b982..3755850666 100644 --- a/packages/bbui/src/Table/ArrayRenderer.svelte +++ b/packages/bbui/src/Table/ArrayRenderer.svelte @@ -5,12 +5,8 @@ const displayLimit = 5 - $: badges = isValidType() ? value?.slice(0, displayLimit) : [] + $: badges = Array.isArray(value) ? value.slice(0, displayLimit) : [] $: leftover = (value?.length ?? 0) - badges.length - - function isValidType() { - return Array.isArray(value) || typeof value === "string" - } {#each badges as badge}