Skip to content

Commit 90f8294

Browse files
authored
Merge pull request #3902 from CVEProject/rl-search-fix
cveListSearch: add optional chaining operator
2 parents fd27c46 + 6e6d756 commit 90f8294

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/stores/cveListSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export const useCveListSearchStore = defineStore('cveListSearch ', {
287287
},
288288
hasSadp(cveRecord) {
289289

290-
return cveRecord.adp.some((adp) => (adp.x_adpType === 'supplier'
290+
return cveRecord.adp?.some((adp) => (adp.x_adpType === 'supplier'
291291
|| adp.providerMetadata.shortName.endsWith('-SADP')));
292292
},
293293
processSearchResults(results){

0 commit comments

Comments
 (0)