Skip to content

Commit

Permalink
Update form stores correctly (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasleet authored Oct 6, 2024
1 parent 0b76e3c commit 21654ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/weak-pandas-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

Fix form store updates when using zod schema
1 change: 0 additions & 1 deletion packages/svelte-ux/src/lib/stores/formStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export default function formStore<T extends Objectish = any>(
// Clear errors
errorsStore.set({});
// TODO: Consider using `result.data` in case there are defaults, etc?
return true;
} else {
const errors = {};
for (const issue of result.error.issues) {
Expand Down

0 comments on commit 21654ff

Please sign in to comment.