Skip to content

Commit ecf5ba0

Browse files
committed
Test update
1 parent d038674 commit ecf5ba0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/routes/tests/bound-component/+page.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Actions, PageServerLoad } from './$types';
22
import { superValidate } from '$lib/server';
3-
import type { z } from 'zod';
43
import { schema } from './schemas';
54

65
export const load = (async () => {

src/routes/tests/bound-component/+page.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
$: {
3131
//console.log('current form', $form, 'errors', $errors);
3232
}
33+
34+
$: errorOutput = `ERRORS ${JSON.stringify($errors, null)}`;
3335
</script>
3436

3537
<SuperDebug data={{ $form, $errors, $tainted }} />
@@ -48,12 +50,11 @@
4850

4951
{#if $errors}
5052
<div
51-
class="status"
53+
class="errors status"
5254
class:error={$page.status >= 400}
5355
class:success={$page.status == 200}
5456
>
55-
ERRORS
56-
{JSON.stringify($errors, null, 2)}
57+
{errorOutput}
5758
</div>
5859
{/if}
5960
<form method="POST" enctype="multipart/form-data" use:enhance>

0 commit comments

Comments
 (0)