full-stack-web-development
full-stack-web-development copied to clipboard
Delete problem
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;
Example repository https://github.com/cherryTec/Gitpod-first-full-stack-develop/pull/14
-----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