@nuskin/ns-product-lib 2.13.0-cx24-100723.6 → 2.13.0-cx24-100723.7
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.13.0-cx24-100723.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.6...v2.13.0-cx24-100723.7) (2023-10-10)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Handle adding variants from bundle ([b2296da](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b2296daef813ccec6088e4d80ba8360f0acd6c43))
|
7
|
+
|
1
8
|
# [2.13.0-cx24-100723.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-100723.5...v2.13.0-cx24-100723.6) (2023-10-10)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
@@ -13,7 +13,7 @@ function childSKUBundle(kits, product) {
|
|
13
13
|
if (personalOffer.active) {
|
14
14
|
//get the products with variants selected
|
15
15
|
const productWithVariant = personalOffer.products.filter((sku) => sku.variantSelected !== null)[0]
|
16
|
-
if (productWithVariant
|
16
|
+
if (productWithVariant !== null) {
|
17
17
|
sku = product.sku.filter((sku) => {
|
18
18
|
return sku.identifier == productWithVariant.variantSelected[product.identifier]
|
19
19
|
})[0]
|