From 88986a98df9181f48ff8482dceab34cc3562040c Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 10 Jul 2026 10:45:46 +0200 Subject: [PATCH] feat: void errors until proper handling --- README.md | 2 ++ resources/ts/components/TaskList.vue | 10 ++-------- 2 files changed, 4 insertions(+), 8 deletions(-) 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 = ""; });