@nuskin/ns-product-lib 2.6.1-cx24-337701.1 → 2.6.1-cx24-337701.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/productData.js +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [2.6.1-cx24-337701.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.2...v2.6.1-cx24-337701.3) (2023-03-19)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* The variant drop down label ([707ddb3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/707ddb37391363059c86460e5da575b78409e250))
|
7
|
+
|
8
|
+
## [2.6.1-cx24-337701.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.1...v2.6.1-cx24-337701.2) (2023-03-19)
|
9
|
+
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* The variant drop down label ([973f145](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/973f1455a91127d575a8fc7d26e7e78d05f1f0a4))
|
14
|
+
|
1
15
|
## [2.6.1-cx24-337701.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.0...v2.6.1-cx24-337701.1) (2023-03-19)
|
2
16
|
|
3
17
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -283,9 +283,9 @@ const ProductData = {
|
|
283
283
|
"shade": "",
|
284
284
|
"status": this.switchStatusFromEquinox(eqVariant.properties.status),
|
285
285
|
"variantType": "Other",
|
286
|
-
"variantDropdownLabel": eqVariant.properties.
|
286
|
+
"variantDropdownLabel": eqVariant.properties.variantLabel || "",
|
287
287
|
"variantDropdownPlaceholder": "Select Type",
|
288
|
-
"variantsLabel": eqVariant.properties.
|
288
|
+
"variantsLabel": eqVariant.properties.variantLabel || "",
|
289
289
|
"groupOffer": false,
|
290
290
|
"personalOffer": false,
|
291
291
|
"savedEventName": eventName,
|
@@ -376,7 +376,7 @@ const ProductData = {
|
|
376
376
|
|
377
377
|
//check variants for default and put it in the first element of the variants array
|
378
378
|
if (variants.length > 1) {
|
379
|
-
let defaultKey =
|
379
|
+
let defaultKey = productData.sku.map(e => e.default).indexOf(true);
|
380
380
|
variants = this.moveArray(variants, defaultKey, 0);
|
381
381
|
}
|
382
382
|
|