diff --git a/src/helpers/other-helper.ts b/src/helpers/other-helper.ts index afd5a362e..e2c7c7a2a 100644 --- a/src/helpers/other-helper.ts +++ b/src/helpers/other-helper.ts @@ -33,12 +33,8 @@ export function removeHiddenTasks(tasks: Task[]) { function getChildren(taskList: Task[], task: Task) { let tasks: Task[] = []; - if (task.type !== "project") { - tasks = taskList.filter( - t => t.dependencies && t.dependencies.indexOf(task.id) !== -1 - ); - } else { - tasks = taskList.filter(t => t.project && t.project === task.id); + if (task.type === "project") { + tasks = taskList.filter(t => t.project && t.project === task.id); } var taskChildren: Task[] = []; tasks.forEach(t => {