diff --git a/packages/bbui/src/Avatar/Avatar.svelte b/packages/bbui/src/Avatar/Avatar.svelte index 7a6ad5f004..f4e42b28a3 100644 --- a/packages/bbui/src/Avatar/Avatar.svelte +++ b/packages/bbui/src/Avatar/Avatar.svelte @@ -16,7 +16,10 @@ function getInitials(name) { let parts = name.split(" ") - return parts.map(name => name[0]).join("") + if (parts.length > 0) { + return parts.map(name => name[0]).join("") + } + return name } diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index 07ba7fa6e9..74bbda278c 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -282,6 +282,7 @@ {#if sortedRows?.length && fields.length} {#each sortedRows as row, idx} dispatch("click", row)} on:click={() => toggleSelectRow(row)} class="spectrum-Table-row" class:hidden={idx < firstVisibleRow || idx > lastVisibleRow} diff --git a/packages/bbui/src/TreeView/Item.svelte b/packages/bbui/src/TreeView/Item.svelte index ef6b0aa021..104c392b65 100644 --- a/packages/bbui/src/TreeView/Item.svelte +++ b/packages/bbui/src/TreeView/Item.svelte @@ -1,6 +1,7 @@ @@ -10,7 +11,7 @@ class:is-open={open} class="spectrum-TreeView-item" > - + {#if $$slots.default} { await initialise() }) - const config = {} + const queryHandler = { parse, stringify } - +