Skip to content

Commit 144c2a5

Browse files
committed
Syntax fixes
1 parent 646bed3 commit 144c2a5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/routes/(v1)/reset/+page.svelte

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
let resets = 0;
1212
13-
const superF: SuperForm<z.infer<typeof schema>> = superForm(data.form, {
13+
const superform: SuperForm<z.infer<typeof schema>> = superForm(data.form, {
1414
// eslint-disable-next-line svelte/valid-compile
1515
resetForm: $page.url.searchParams.has('function')
1616
? () => {
@@ -23,10 +23,7 @@
2323
}
2424
});
2525
26-
$: form = superF.form;
27-
$: enhance = superF.enhance;
28-
$: errors = superF.errors;
29-
$: reset = superF.reset;
26+
const { form, enhance, errors, reset } = superform;
3027
3128
function resetForm() {
3229
console.log('Reset!');

0 commit comments

Comments
 (0)