@nuskin/ns-product-lib 2.22.0-mdigi-6056.2 → 2.22.0-mdigi-6056.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/graph-ql/product.js +0 -1
- package/src/productData.js +2 -0
package/package.json
CHANGED
package/src/graph-ql/product.js
CHANGED
|
@@ -293,7 +293,6 @@ async function mapProduct(product, market, locale, config) {
|
|
|
293
293
|
"sku": sku,
|
|
294
294
|
"globalProductID": productOrVariant.globalId && productOrVariant.globalId !== productOrVariant.sku ? productOrVariant.globalId : productOrVariant.id,
|
|
295
295
|
"title": productOrVariant.title,
|
|
296
|
-
"categories": productOrVariant.categories || [],
|
|
297
296
|
"country": market,
|
|
298
297
|
"language": locale,
|
|
299
298
|
"shortDescr": productOrVariant.description,
|
package/src/productData.js
CHANGED
|
@@ -202,6 +202,7 @@ const ProductData = {
|
|
|
202
202
|
"sku": eqVariant.identifier,
|
|
203
203
|
"globalProductID": eqVariant.identifier,
|
|
204
204
|
"title": eqVariant.properties.name,
|
|
205
|
+
"categories": eqVariant.properties.productCategory || [],
|
|
205
206
|
"country": eqVariant.properties.market,
|
|
206
207
|
"language": "en",
|
|
207
208
|
"shortDescr": eqVariant.properties.description,
|
|
@@ -458,6 +459,7 @@ const ProductData = {
|
|
|
458
459
|
"sku": productSku,
|
|
459
460
|
"globalProductID": productData.identifier,
|
|
460
461
|
"title": productTitle,
|
|
462
|
+
"categories": productData.properties.productCategory || product.properties.productCategory || [],
|
|
461
463
|
"country": product.properties.market,
|
|
462
464
|
"language": "en",
|
|
463
465
|
"shortDescr": productData.properties.description,
|