fix(contextGatherer): cannot read properties of undefined reading forEach (#789)

This commit is contained in:
Ralph Khreish
2025-06-16 10:32:34 +02:00
committed by GitHub
parent 246acd1035
commit 8cde6c2708
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"task-master-ai": patch
---
Fix contextGatherer bug when adding a task `Cannot read properties of undefined (reading 'forEach')`

View File

@@ -123,7 +123,7 @@ export class ContextGatherer {
// Dependency Graph Analysis
if (dependencyTasks.length > 0) {
const dependencyResults = this._buildDependencyContext(dependencyTasks);
const dependencyResults = this._buildDependencyGraphs(dependencyTasks);
dependencyResults.allRelatedTaskIds.forEach((id) =>
finalTaskIds.add(String(id))
);