From 3970d0fd315488427df0c4a37447eb52dca322b4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 29 Sep 2022 18:03:23 +0200 Subject: [PATCH] chore: spread title --- src/components/tasks/add-task.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tasks/add-task.vue b/src/components/tasks/add-task.vue index 88d1f0cf0..318a6ec62 100644 --- a/src/components/tasks/add-task.vue +++ b/src/components/tasks/add-task.vue @@ -164,13 +164,13 @@ async function addTask() { const taskTitleBackup = newTaskTitle.value const createdTasks: ITask[] = [] const tasksToCreate = parseSubtasksViaIndention(newTaskTitle.value) - const newTasks = tasksToCreate.map(async t => { - if (t.title === '') { + const newTasks = tasksToCreate.map(async ({title}) => { + if (title === '') { return } const task = await taskStore.createNewTask({ - title: t.title, + title, listId: authStore.settings.defaultListId, position: props.defaultPosition, })