(e, id)
| 45 | }; |
| 46 | |
| 47 | const deleteTodo = async (e, id) => { |
| 48 | try { |
| 49 | e.stopPropagation(); |
| 50 | setCommandOutput("Command in progress"); |
| 51 | setCommandOutput(await APIHelper.deleteTodo(todos[id].title)); |
| 52 | const todoList = await APIHelper.getAllTodos(); |
| 53 | setTodos([...todoList]); |
| 54 | } catch (err) { } |
| 55 | }; |
| 56 | |
| 57 | const updateTodo = async (e, id) => { |
| 58 | e.stopPropagation(); |
nothing calls this directly
no outgoing calls
no test coverage detected