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:
luisramos0
2019-11-18 14:51:34 +00:00
parent 9451f1b66d
commit d5e42ee1e5
3 changed files with 35 additions and 13 deletions

View File

@@ -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)
})