@nuskin/ns-product-lib 2.6.1-cx24-337701.8 → 2.6.1-cx24-337701.9

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.6.1-cx24-337701.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.8...v2.6.1-cx24-337701.9) (2023-03-20)
2
+
3
+
4
+ ### Fix
5
+
6
+ * The variant drop down label ([a35121b](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a35121b96fb7d0e62119e4bebea9d513cd2e8814))
7
+
1
8
  ## [2.6.1-cx24-337701.8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.7...v2.6.1-cx24-337701.8) (2023-03-20)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.6.1-cx24-337701.8",
3
+ "version": "2.6.1-cx24-337701.9",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -367,9 +367,9 @@ const ProductData = {
367
367
  thumbnailImage = imageURL.replace(regex, '40.40')
368
368
  }
369
369
 
370
- if (productData.sku && productData.sku.length > 1) {
370
+ if (product.sku && product.sku.length > 1) {
371
371
  // exclude base product from variants
372
- productData.sku.filter(v => v.identifier.substring(2, 4) !== "55").map(variant => {
372
+ product.sku.filter(v => v.identifier.substring(2, 4) !== "55").map(variant => {
373
373
  variants[variant.identifier] = this.eqProductVariantMapper(variant);
374
374
  return variant;
375
375
  });