Fix uncompleting a task without a parent
This commit is contained in:
parent
a294d77efd
commit
49060454d8
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ const actions = {
|
|||
if (complete < 100) {
|
||||
// uncomplete the parent task
|
||||
let parent = context.getters.getParentTask(task)
|
||||
if (parent.completed) {
|
||||
if (parent && parent.completed) {
|
||||
await context.dispatch('setPercentComplete', { task: parent, complete: 0 })
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue