mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Don't render twice 🙈
This commit is contained in:
@@ -7,7 +7,7 @@ module Api
|
||||
skip_before_filter :authenticate_user, :ensure_api_key, only: [:taxons, :properties]
|
||||
|
||||
def products
|
||||
render_no_products unless order_cycle.open?
|
||||
return render_no_products unless order_cycle.open?
|
||||
|
||||
products = ProductsRenderer.new(
|
||||
distributor,
|
||||
|
||||
Reference in New Issue
Block a user