mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
add not hidden scope to hide hidden hub from producers profile
This commit is contained in:
@@ -63,7 +63,7 @@ module Api
|
||||
|
||||
def hubs
|
||||
ActiveModel::ArraySerializer.new(
|
||||
enterprise.distributors, each_serializer: Api::EnterpriseThinSerializer
|
||||
enterprise.distributors.not_hidden, each_serializer: Api::EnterpriseThinSerializer
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user