Skip to content

Commit

Permalink
🐛fix(agent) tolerate undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
knackstedt committed Apr 9, 2024
1 parent 8da4460 commit d03c444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/src/run-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const RunTaskGroups = (
.filter(tg => !tg.preTaskGroups || tg.preTaskGroups.length == 0);
const triggeredTaskGroups = job.taskGroups
.filter(tg =>
tg.preTaskGroups.length > 0 &&
tg.preTaskGroups?.length > 0 &&
tg.preTaskGroups.every(tgi => taskGroupIdList.includes(tgi as any))
);

Expand Down

0 comments on commit d03c444

Please sign in to comment.