Skip to content

Commit 21654ff

Browse files
authored
Update form stores correctly (#494)
1 parent 0b76e3c commit 21654ff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/weak-pandas-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte-ux': patch
3+
---
4+
5+
Fix form store updates when using zod schema

packages/svelte-ux/src/lib/stores/formStore.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export default function formStore<T extends Objectish = any>(
5151
// Clear errors
5252
errorsStore.set({});
5353
// TODO: Consider using `result.data` in case there are defaults, etc?
54-
return true;
5554
} else {
5655
const errors = {};
5756
for (const issue of result.error.issues) {

0 commit comments

Comments
 (0)