Fix uncompleting a task without a parent

This commit is contained in:
Raimund Schlüßler 2019-01-02 10:50:59 +01:00
parent a294d77efd
commit 49060454d8
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -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 {