mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
Paginate exchange products results
This commit breaks the OC page when there are more than 100 products in an exchange
This commit is contained in:
@@ -11,5 +11,5 @@ angular.module('admin.orderCycles').factory('ExchangeProduct', ($resource) ->
|
||||
index: (params={}, callback=null) ->
|
||||
ExchangeProductResource.index params, (data) =>
|
||||
@loaded = true
|
||||
(callback || angular.noop)(data)
|
||||
(callback || angular.noop)(data.products)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user