Skip to content

Commit

Permalink
chore(example): minor svelte fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold committed Oct 29, 2024
1 parent d12aff1 commit ae45dc1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/sveltekit/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
let { form } = $props();
let files: FileList = $state();
let files: FileList | undefined = $state();
</script>

<form method="post" enctype="multipart/form-data">
Expand All @@ -14,7 +14,7 @@
{#if form?.files}
<h2>Uploaded Files:</h2>
{#each form.files as file}
<p>
<section>
{file.name}
{#if file.tableNames.length}
<ul>
Expand All @@ -23,14 +23,14 @@
{/each}
</ul>
{/if}
</p>
</section>
{/each}
{/if}

{#if files}
<h2>Selected Files:</h2>
{#each files as file}
<p>
<section>
{file.name}:
{#await getTableNames(file) then tableNames}
<ul>
Expand All @@ -39,6 +39,6 @@
{/each}
</ul>
{/await}
</p>
</section>
{/each}
{/if}

0 comments on commit ae45dc1

Please sign in to comment.