diff --git a/README.md b/README.md index 5bb855d..73d2675 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,6 @@ - [ ] list per URL - [ ] home screen - [ ] change lang +- [ ] toasts +- [ ] handle errors - [ ] simple view diff --git a/resources/ts/components/TaskList.vue b/resources/ts/components/TaskList.vue index 057ab20..89f6f0e 100644 --- a/resources/ts/components/TaskList.vue +++ b/resources/ts/components/TaskList.vue @@ -10,28 +10,22 @@ const tasks = ref([]); const list = ref("test"); function fetchTasks() { - getTasks(list.value) + void getTasks(list.value) .then((data: Task[]) => { tasks.value = data; setTimeout(fetchTasks, 10000); - }) - .catch(() => { - // ignore }); } function newTask() { if (taskInput.value.trim()) { - createTask(list.value, { + void createTask(list.value, { name: taskInput.value.trim(), reset_cron: null, }) .then((data: Task) => { tasks.value.push(data); }) - .catch(() => { - //ignore - }) .finally(() => { taskInput.value = ""; });