1
0
Fork 0

fix: missing await

This commit is contained in:
kolaente 2023-05-30 11:37:45 +02:00
parent 2e9ade11c3
commit 391992effb
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
/>
<!-- Show any parent tasks to make it clear this task is a sub task of something -->
<span class="parent-tasks" v-if="typeof task.relatedTasks.parenttask !== 'undefined'">
<span class="parent-tasks" v-if="typeof task.relatedTasks?.parenttask !== 'undefined'">
<template v-for="(pt, i) in task.relatedTasks.parenttask">
{{ pt.title }}<template v-if="(i + 1) < task.relatedTasks.parenttask.length">,&nbsp;</template>
</template>
@ -255,7 +255,7 @@ function undoDone(checked: boolean) {
}
async function toggleFavorite() {
task.value = taskStore.toggleFavorite(task.value)
task.value = await taskStore.toggleFavorite(task.value)
emit('task-updated', task.value)
}