fix(tasks): favorited sub tasks are not shown in favorites pseudo list
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2023-12-13 19:22:28 +01:00
parent 818f31c220
commit 4d6fd9ecc4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 1 deletions

View File

@ -175,7 +175,11 @@ const tasks = ref<ITask[]>([])
watch(
allTasks,
() => {
tasks.value = [...allTasks.value].filter(t => typeof t.relatedTasks?.parenttask === 'undefined')
tasks.value = [...allTasks.value]
if (projectId < 0) {
return
}
tasks.value = tasks.value.filter(t => typeof t.relatedTasks?.parenttask === 'undefined')
},
)