From b22d373446067d8ccc484f503dc9bfdaa8e81e89 Mon Sep 17 00:00:00 2001 From: AquilesOliveiraDev Date: Wed, 31 Jan 2024 16:09:50 -0300 Subject: [PATCH] remove the requirement that the dependency be a child of the project --- src/helpers/other-helper.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 => {