@nuskin/ns-product-lib 2.6.1-cx24-337701.7 → 2.6.1-cx24-337701.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/productData.js +3 -5
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [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
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* The variant drop down label ([226e964](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/226e96475b26ef4eda94ac63028285f27c9a81ba))
|
7
|
+
|
1
8
|
## [2.6.1-cx24-337701.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.6...v2.6.1-cx24-337701.7) (2023-03-20)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -367,15 +367,13 @@ const ProductData = {
|
|
367
367
|
thumbnailImage = imageURL.replace(regex, '40.40')
|
368
368
|
}
|
369
369
|
|
370
|
-
if (
|
370
|
+
if (productData.sku && productData.sku.length > 1) {
|
371
371
|
// exclude base product from variants
|
372
|
-
|
372
|
+
productData.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
|
});
|
376
|
-
|
377
|
-
if (defaultKey && product.sku.length > 1)
|
378
|
-
variants = this.moveArray(Object.values(variants), defaultKey, 0);
|
376
|
+
|
379
377
|
}
|
380
378
|
|
381
379
|
|