Compare commits

...

2 Commits

Author SHA1 Message Date
Ralph Khreish
e9f7a636cc chore: fix formatting 2025-06-16 11:29:16 +03:00
Ralph Khreish
c24d313564 fix(contextGathere): cannot read properties of undefined reading forEach 2025-06-16 11:26:05 +03:00
3 changed files with 7 additions and 2 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 // Dependency Graph Analysis
if (dependencyTasks.length > 0) { if (dependencyTasks.length > 0) {
const dependencyResults = this._buildDependencyContext(dependencyTasks); const dependencyResults = this._buildDependencyGraphs(dependencyTasks);
dependencyResults.allRelatedTaskIds.forEach((id) => dependencyResults.allRelatedTaskIds.forEach((id) =>
finalTaskIds.add(String(id)) finalTaskIds.add(String(id))
); );