diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index 19accc5120..b8d65e243f 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -153,53 +153,55 @@ class="container">
-
- {editColumnTitle || ''}
-
- |
- {/if}
- {#each fields as field}
- sortBy(field)}>
-
-
- {schema[field]?.displayName || schema[field]?.name}
+ {#if sortedRows?.length}
+
+
+ |
- {/each}
-
+ {editColumnTitle || ''}
- {#if schema[field]?.autocolumn}
-
- {/if}
- {#if sortColumn === field}
-
- {/if}
- {#if allowEditColumns && schema[field]?.editable !== false}
-
- {/if}
-
- |
+ {/if}
+ {#each fields as field}
+ sortBy(field)}>
+
+
+
+ {schema[field]?.displayName || schema[field]?.name}
+
+ {#if schema[field]?.autocolumn}
+
+ {/if}
+ {#if sortColumn === field}
+
+ {/if}
+ {#if allowEditColumns && schema[field]?.editable !== false}
+
+ {/if}
+ |
+ {/each}
+
---|