chore: spread title

This commit is contained in:
kolaente 2022-09-29 18:03:23 +02:00
parent cc378b83fe
commit 3970d0fd31
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -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,
})