feat: void errors until proper handling
TS Lint / Oxlint (push) Successful in 4m3s
TS Lint / ESLint (push) Successful in 4m9s
TS Lint / TypeScript (push) Has been cancelled

This commit is contained in:
2026-07-10 10:45:46 +02:00
parent 900d2ea714
commit 88986a98df
2 changed files with 4 additions and 8 deletions
+2
View File
@@ -9,4 +9,6 @@
- [ ] list per URL - [ ] list per URL
- [ ] home screen - [ ] home screen
- [ ] change lang - [ ] change lang
- [ ] toasts
- [ ] handle errors
- [ ] simple view - [ ] simple view
+2 -8
View File
@@ -10,28 +10,22 @@ const tasks = ref<Task[]>([]);
const list = ref<string>("test"); const list = ref<string>("test");
function fetchTasks() { function fetchTasks() {
getTasks(list.value) void getTasks(list.value)
.then((data: Task[]) => { .then((data: Task[]) => {
tasks.value = data; tasks.value = data;
setTimeout(fetchTasks, 10000); setTimeout(fetchTasks, 10000);
})
.catch(() => {
// ignore
}); });
} }
function newTask() { function newTask() {
if (taskInput.value.trim()) { if (taskInput.value.trim()) {
createTask(list.value, { void createTask(list.value, {
name: taskInput.value.trim(), name: taskInput.value.trim(),
reset_cron: null, reset_cron: null,
}) })
.then((data: Task) => { .then((data: Task) => {
tasks.value.push(data); tasks.value.push(data);
}) })
.catch(() => {
//ignore
})
.finally(() => { .finally(() => {
taskInput.value = ""; taskInput.value = "";
}); });