full-stack-web-development icon indicating copy to clipboard operation
full-stack-web-development copied to clipboard

Delete problem

Open cherryTec opened this issue 3 years ago • 2 comments

Bug description

Every step is fine,excipt delete.I canit figure out by myself,Can you help me.

I get too Error: Status Code: 500 form.ts:21 Fetch error: {}

Steps to reproduce

---//todo-item.svelte export let processDeletedTodoResult: (res: Response) => void;

----// {#each todos as todo}
<TodoItem
{todo} processDeletedTodoResult={() => { todos = todos.filter(t => t.uid !== todo.uid); }} {processUpdatedTodoResult} /> {/each}

Expected behavior

No response

Example repository

https://3000-sapphire-sheep-8fvpx5g2.ws-us23.gitpod.io/

Anything else?

No response

cherryTec avatar Dec 19 '21 05:12 cherryTec

Example repository https://github.com/cherryTec/Gitpod-first-full-stack-develop/pull/14

cherryTec avatar Dec 19 '21 05:12 cherryTec

-----form.ts change: if (res.ok){}. if (res) ---It works,but still get Error. Status Code: 500

Example repository https://github.com/cherryTec/Gitpod-first-full-stack-develop/pull/14/commits/8f2330420902060f8a863cec23b38d628eb15f8e

cherryTec avatar Dec 19 '21 08:12 cherryTec