Skip to content

Commit

Permalink
Fix "cannot read properties of undefined" (reading 'filter') (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Koedijk authored Sep 29, 2024
1 parent 3a8ee91 commit b0b653d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/tasks/dependabotV2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function run() {
);
const allDependenciesUpdateOutputs = await dependabot.update(allDependenciesJob, dependabotUpdaterOptions);
if (!allDependenciesUpdateOutputs || allDependenciesUpdateOutputs.filter((u) => !u.success).length > 0) {
allDependenciesUpdateOutputs.filter((u) => !u.success).forEach((u) => exception(u.error));
allDependenciesUpdateOutputs?.filter((u) => !u.success)?.forEach((u) => exception(u.error));
failedJobs++;
}

Expand All @@ -127,7 +127,7 @@ async function run() {
);
const updatePullRequestOutputs = await dependabot.update(updatePullRequestJob, dependabotUpdaterOptions);
if (!updatePullRequestOutputs || updatePullRequestOutputs.filter((u) => !u.success).length > 0) {
updatePullRequestOutputs.filter((u) => !u.success).forEach((u) => exception(u.error));
updatePullRequestOutputs?.filter((u) => !u.success)?.forEach((u) => exception(u.error));
failedJobs++;
}
}
Expand Down

0 comments on commit b0b653d

Please sign in to comment.