File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ export interface DependencyGraphNodeProps {
7575 enableContextMenu ?: boolean ;
7676 onExpansionToggle ?: ( nodeId : string ) => void ;
7777 hasPatch ?: boolean ;
78- directDependencyFixedVersion ?: string | null ;
7978 } ;
8079 id : string ;
8180}
Original file line number Diff line number Diff line change @@ -250,19 +250,6 @@ export const getLayoutedElements = (
250250 { } as { [ key : string ] : DependencyVuln [ ] } ,
251251 ) ;
252252
253- // Build a map of nodes that are first in a vulnerability path with a fix available
254- const firstInPathWithFixMap = new Map < string , string > ( ) ;
255- vulns . forEach ( ( vuln : DependencyVuln ) => {
256- if (
257- vuln . directDependencyFixedVersion &&
258- vuln . vulnerabilityPath &&
259- vuln . vulnerabilityPath . length > 0
260- ) {
261- const firstInPath = vuln . vulnerabilityPath [ 0 ] ;
262- firstInPathWithFixMap . set ( firstInPath , vuln . directDependencyFixedVersion ) ;
263- }
264- } ) ;
265-
266253 dagreGraph . setGraph ( {
267254 rankdir : direction ,
268255 nodesep : 0 ,
@@ -354,7 +341,6 @@ export const getLayoutedElements = (
354341 : 0 ,
355342 onExpansionToggle,
356343 hasPatch : directDepsWithPatches ?. has ( el ) ?? false ,
357- directDependencyFixedVersion : firstInPathWithFixMap . get ( el ) ?? null ,
358344 } ,
359345 } ;
360346 } ) ;
You can’t perform that action at this time.
0 commit comments