Skip to content

Commit 05c1824

Browse files
committed
Deprecated fix in onSubmit
1 parent 52079b0 commit 05c1824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
await goto('?id=' + form.data.id);
2727
}
2828
},
29-
onSubmit({ data, cancel }) {
30-
if (data.has('cancel')) {
29+
onSubmit({ formData, cancel }) {
30+
if (formData.has('cancel')) {
3131
console.log('Cancelling');
3232
cancel();
3333
}

0 commit comments

Comments
 (0)