Skip to content

Commit

Permalink
Return empty array for ignoredCves when falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
FestiveKyle committed Oct 21, 2024
1 parent 48c7b3a commit 9a61ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/domain/objects/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const domainType = new GraphQLObjectType({
ignoredCves: {
type: new GraphQLList(CveID),
description: 'List of CVEs that have been ignored by the user.',
resolve: ({ ignoredCves }) => ignoredCves,
resolve: ({ ignoredCves }) => ignoredCves || [],
},
dmarcSummaryByPeriod: {
description: 'Summarized DMARC aggregate reports.',
Expand Down

0 comments on commit 9a61ad9

Please sign in to comment.