fix(dashboard): manage inventory flags (#9487)
**What** - allow to create a variant without managed inventory (we need to explicitly pass `false` now since the default on the model is `true` for `manage_inventory`) --- FIXES CC-575
This commit is contained in:
@@ -57,8 +57,8 @@ export const normalizeVariants = (
|
||||
variant.custom_title || Object.values(variant.options || {}).join(" / "),
|
||||
options: variant.options,
|
||||
sku: variant.sku || undefined,
|
||||
manage_inventory: variant.manage_inventory || undefined,
|
||||
allow_backorder: variant.allow_backorder || undefined,
|
||||
manage_inventory: !!variant.manage_inventory,
|
||||
allow_backorder: !!variant.allow_backorder,
|
||||
inventory_items: variant
|
||||
.inventory!.map((i) => {
|
||||
const quantity = castNumber(i.required_quantity)
|
||||
|
||||
Reference in New Issue
Block a user