mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Tidy up SCSS and coffeescript
This commit is contained in:
@@ -4,9 +4,9 @@ angular.module("admin.variantOverrides").filter "importDate", ($filter, variantO
|
||||
return $filter('filter')(products, (product) ->
|
||||
return true if date == 0 or date == undefined or date == '0' or date == ''
|
||||
|
||||
for variant in product.variants
|
||||
for vo in variantOverrides
|
||||
angular.forEach product.variants (variant) ->
|
||||
angular.forEach variantOverrides (vo) ->
|
||||
if vo.variant_id == variant.id and vo.import_date == date
|
||||
return true
|
||||
false
|
||||
, true)
|
||||
, true)
|
||||
|
||||
Reference in New Issue
Block a user