File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ const ScanResults = ({ scanResults, onRefreshRequest }) => {
186186 ) : null }
187187 { catNum ? (
188188 < span className = "cve-category text-gray-600" >
189- Category: { Object . keys ( patternCategories ) . find ( k => patternCategories [ k ] === catNum ) } ({ catNum } )
189+ Category: { Object . keys ( patternCategories ) . find ( k => patternCategories [ k ] ?. id === catNum ) } ({ catNum } )
190190 </ span >
191191 ) : null }
192192 </ div >
@@ -260,7 +260,7 @@ const ScanResults = ({ scanResults, onRefreshRequest }) => {
260260 </ pre >
261261 { catNum || subCat ? (
262262 < p className = "text-xs text-gray-600 mt-2" >
263- Category: { Object . keys ( patternCategories ) . find ( k => patternCategories [ k ] === catNum ) } ({ catNum } )< br />
263+ Category: { Object . keys ( patternCategories ) . find ( k => patternCategories [ k ] ?. id === catNum ) } ({ catNum } )< br />
264264 Subcategory: { subCat }
265265 </ p >
266266 ) : null }
You can’t perform that action at this time.
0 commit comments