mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
Merge pull request #5370 from Matt-Yorkley/dont-render-twice
Don't render twice
This commit is contained in:
@@ -11,7 +11,7 @@ module Api
|
||||
cache_path: proc { |controller| controller.request.url }
|
||||
|
||||
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