Skip to content

Commit

Permalink
fix: handle deleted mod dependencies in REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 12, 2024
1 parent 409e741 commit d419374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nodes/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ func getAllModVersions(c echo.Context) (interface{}, *ErrorResponse) {

for _, version := range versions {
for _, dependency := range version.Edges.VersionDependencies {
dependency.ModID = dependency.Edges.Mod.ModReference
if dependency.Edges.Mod != nil {
dependency.ModID = dependency.Edges.Mod.ModReference
}
}
}

Expand Down

0 comments on commit d419374

Please sign in to comment.