Skip to content

Commit

Permalink
Update packages/create-svelte/templates/default/src/routes/todos/inde…
Browse files Browse the repository at this point in the history
…x.svelte

Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
  • Loading branch information
ric2b and ignatiusmb authored Aug 12, 2021
1 parent a52dded commit 861e0f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
action="/todos/{todo.uid}.json?_method=delete"
method="post"
use:enhance={{
pending: () => todo.pending_delete = true,
pending: () => (todo.pending_delete = true),
result: () => {
todos = todos.filter((t) => t.uid !== todo.uid);
}
Expand Down

0 comments on commit 861e0f1

Please sign in to comment.