Skip to content

Commit 6e6d756

Browse files
committed
cveListSearch: add optional chaining operator
1 parent fd27c46 commit 6e6d756

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)