mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
green tests for sorted scales
This commit is contained in:
@@ -35,4 +35,5 @@ angular.module("admin.products").factory "VariantUnitManager", ->
|
||||
@unitNames[unitType][scale]
|
||||
|
||||
@unitScales: (unitType) ->
|
||||
(parseFloat(scale) for scale in Object.keys(@unitNames[unitType])).sort()
|
||||
(parseFloat(scale) for scale in Object.keys(@unitNames[unitType])).sort (a, b) ->
|
||||
a - b
|
||||
|
||||
Reference in New Issue
Block a user