chore: spread title
This commit is contained in:
parent
cc378b83fe
commit
3970d0fd31
1 changed files with 3 additions and 3 deletions
|
@ -164,13 +164,13 @@ async function addTask() {
|
||||||
const taskTitleBackup = newTaskTitle.value
|
const taskTitleBackup = newTaskTitle.value
|
||||||
const createdTasks: ITask[] = []
|
const createdTasks: ITask[] = []
|
||||||
const tasksToCreate = parseSubtasksViaIndention(newTaskTitle.value)
|
const tasksToCreate = parseSubtasksViaIndention(newTaskTitle.value)
|
||||||
const newTasks = tasksToCreate.map(async t => {
|
const newTasks = tasksToCreate.map(async ({title}) => {
|
||||||
if (t.title === '') {
|
if (title === '') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const task = await taskStore.createNewTask({
|
const task = await taskStore.createNewTask({
|
||||||
title: t.title,
|
title,
|
||||||
listId: authStore.settings.defaultListId,
|
listId: authStore.settings.defaultListId,
|
||||||
position: props.defaultPosition,
|
position: props.defaultPosition,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue