diff --git a/examples/sveltekit/src/routes/+page.svelte b/examples/sveltekit/src/routes/+page.svelte index b9da53ce..5405cb41 100644 --- a/examples/sveltekit/src/routes/+page.svelte +++ b/examples/sveltekit/src/routes/+page.svelte @@ -3,7 +3,7 @@ let { form } = $props(); - let files: FileList = $state(); + let files: FileList | undefined = $state();
@@ -14,7 +14,7 @@ {#if form?.files}

Uploaded Files:

{#each form.files as file} -

+

{file.name} {#if file.tableNames.length} {/if} -

+
{/each} {/if} {#if files}

Selected Files:

{#each files as file} -

+

{file.name}: {#await getTableNames(file) then tableNames} {/await} -

+
{/each} {/if}