mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
Do not set unit value or description on variant when unpacked field is undefined
This commit is contained in:
@@ -552,6 +552,11 @@ describe "AdminBulkProductsCtrl", ->
|
||||
unit_description: ''
|
||||
unit_value_with_description: ""
|
||||
|
||||
it "sets nothing when the field is undefined", ->
|
||||
testVariant = {}
|
||||
scope.packVariant(testVariant)
|
||||
expect(testVariant).toEqual {}
|
||||
|
||||
|
||||
describe "filtering products", ->
|
||||
beforeEach ->
|
||||
|
||||
Reference in New Issue
Block a user