Skip to content

Commit

Permalink
Fix checkbox reset
Browse files Browse the repository at this point in the history
  • Loading branch information
khromov committed Aug 15, 2024
1 parent 732d971 commit 9ad9cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
use:enhance={() => {
sending = true;
return ({ update, result }) => {
update({ invalidateAll: true }).finally(async () => {
update({ invalidateAll: true, reset: false }).finally(async () => {
sending = false;
if (result.type === 'failure') {
toast.error(result.data?.error || 'An error occurred');
Expand Down

0 comments on commit 9ad9cdd

Please sign in to comment.