Skip to content

Commit fb3e93b

Browse files
authored
Update normalize/sbom_graph.go
Signed-off-by: Tim Bastin <38261809+timbastin@users.noreply.github.com>
1 parent 764bdad commit fb3e93b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

normalize/sbom_graph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ func SBOMGraphFromComponents[T GraphComponent](components []T, licenseOverwrites
18461846
dependencyMap := make(map[string][]string, len(components))
18471847
for _, c := range components {
18481848
parentID := c.GetDependentID()
1849-
if parentID == "" {
1849+
if parentID == "ROOT" {
18501850
parentID = GraphRootNodeID
18511851
}
18521852
dependencyMap[parentID] = append(dependencyMap[parentID], c.GetID())

0 commit comments

Comments
 (0)