Skip to content

Commit

Permalink
fix: crash for undefined dependencyVulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Feb 10, 2023
1 parent f94ec0d commit 1214155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const getReport = async ({

return {
dependencyGraph: dGraph,
dependencyVulnerabilities: dependencyVulnerabilities.filter(
dependencyVulnerabilities: (dependencyVulnerabilities || []).filter(
({findings: {affects}}) => affects.length,
),
rootVulnerabilities,
Expand Down

0 comments on commit 1214155

Please sign in to comment.