Skip to content

Commit a8ff2a9

Browse files
Merge pull request #7 from AquilesOliveiraDev/feature/dependencies-type-and-arrows
remove the requirement that the dependency be a child of the project
2 parents d4d1668 + b22d373 commit a8ff2a9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/helpers/other-helper.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ export function removeHiddenTasks(tasks: Task[]) {
3333

3434
function getChildren(taskList: Task[], task: Task) {
3535
let tasks: Task[] = [];
36-
if (task.type !== "project") {
37-
tasks = taskList.filter(
38-
t => t.dependencies && t.dependencies.indexOf(task.id) !== -1
39-
);
40-
} else {
41-
tasks = taskList.filter(t => t.project && t.project === task.id);
36+
if (task.type === "project") {
37+
tasks = taskList.filter(t => t.project && t.project === task.id);
4238
}
4339
var taskChildren: Task[] = [];
4440
tasks.forEach(t => {

0 commit comments

Comments
 (0)