diff options
Diffstat (limited to 'app/graphql/types/packages/package_links_type.rb')
-rw-r--r-- | app/graphql/types/packages/package_links_type.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/graphql/types/packages/package_links_type.rb b/app/graphql/types/packages/package_links_type.rb index f16937530b9..eb29fb655bd 100644 --- a/app/graphql/types/packages/package_links_type.rb +++ b/app/graphql/types/packages/package_links_type.rb @@ -12,6 +12,8 @@ module Types field :web_path, GraphQL::Types::String, null: true, description: 'Path to the package details page.' def web_path + return unless object.default? + package_path(object) end end |