From 49060454d80671e7cb9310423401955cf3086e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Wed, 2 Jan 2019 10:50:59 +0100 Subject: [PATCH] Fix uncompleting a task without a parent --- src/store/tasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/tasks.js b/src/store/tasks.js index 05336bc6..a29fd0fb 100644 --- a/src/store/tasks.js +++ b/src/store/tasks.js @@ -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 {