Skip to content

Commit 6f3c4ec

Browse files
committed
fix: fix import table data
1 parent ac7ea79 commit 6f3c4ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/frontend/src/lib/components/blocks/import-table/import-table.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,14 @@
243243
</Label>
244244
<Label class="flex items-center gap-2">
245245
<Checkbox disabled={$createTable.isPending || $createRecords.isPending} bind:checked={importData} />
246-
Import Data
246+
<span>Import Data</span>
247+
248+
{#if (data?.data.length ?? 0) > 1}
249+
<span>({(data?.data.length ?? 0) - 1} rows)</span>
250+
{/if}
247251
</Label>
248252
{#if data && file && schema}
249-
<div class="p-3">
253+
<div class="space-y-2">
250254
<Label class="flex items-center gap-2">
251255
<div>Name</div>
252256
<Input disabled={$createTable.isPending || $createRecords.isPending} class="text-sm" bind:value={tableName} />

0 commit comments

Comments
 (0)