diff --git a/Sources/App/Views/PackageController/GetRoute.Model+ext.swift b/Sources/App/Views/PackageController/GetRoute.Model+ext.swift index 0c251667c..db88af843 100644 --- a/Sources/App/Views/PackageController/GetRoute.Model+ext.swift +++ b/Sources/App/Views/PackageController/GetRoute.Model+ext.swift @@ -399,6 +399,10 @@ extension API.PackageController.GetRoute.Model { } func customCollectionsListItem() -> Node { + @Dependency(\.environment) var environment + guard environment.current() == .development + else { return .empty } + guard customCollections.isEmpty == false else { return .empty } diff --git a/Tests/AppTests/__Snapshots__/WebpageSnapshotTests/test_PackageShowView_customCollection.1.html b/Tests/AppTests/__Snapshots__/WebpageSnapshotTests/test_PackageShowView_customCollection.1.html index 74d1c725a..166893c3a 100644 --- a/Tests/AppTests/__Snapshots__/WebpageSnapshotTests/test_PackageShowView_customCollection.1.html +++ b/Tests/AppTests/__Snapshots__/WebpageSnapshotTests/test_PackageShowView_customCollection.1.html @@ -162,9 +162,6 @@

When working with a Swift Package Manager manifest:

5 open pull requests. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
  • This package depends on 2 other packages.
  • -
  • Member of the - Custom Collection collection. -
  • licensed
  • 17 stars
  • 3 libraries