@nuskin/ns-product-lib 2.19.7-td-1017.1 → 2.19.7-td-1017.3
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/graph-ql/product.js +2 -1
package/package.json
CHANGED
package/src/graph-ql/product.js
CHANGED
@@ -257,6 +257,7 @@ function mapProduct(product, market, locale, config) {
|
|
257
257
|
const points = kitOrVariant.points
|
258
258
|
const isBackOrdered = kitOrVariant.status.inventory === 'backordered'
|
259
259
|
const promoData = mapPromos(kitOrVariant)
|
260
|
+
const productionBom = product.bundle && product.bundle.isProductionBom ? product.bundle.isProductionBom : false;
|
260
261
|
|
261
262
|
const productDetail = {
|
262
263
|
"sku": !kitBundleProducts ? defaultVariant.sku : product.id,
|
@@ -328,7 +329,7 @@ function mapProduct(product, market, locale, config) {
|
|
328
329
|
isBackOrdered: isBackOrdered,
|
329
330
|
inventoryStatus: isBackOrdered ? 'BACKORDER' : 'IN STOCK',
|
330
331
|
productStatus: mapProductStatus(kitOrVariant.status.status),
|
331
|
-
productionBom:
|
332
|
+
productionBom: productionBom
|
332
333
|
}
|
333
334
|
}
|
334
335
|
|