feat: automatically create subtask relations based on indention #2443

Merged
konrad merged 6 commits from feature/subtask-via-indention into main 2022-09-30 11:47:22 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 3970d0fd31 - Show all commits

View File

@ -164,13 +164,13 @@ async function addTask() {
const taskTitleBackup = newTaskTitle.value
const createdTasks: ITask[] = []
const tasksToCreate = parseSubtasksViaIndention(newTaskTitle.value)
konrad marked this conversation as resolved Outdated

spread title: ({title}) => {

spread title: `({title}) => {`
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,
})