@nuskin/ns-product-lib 2.6.1-cx24-337701.3 → 2.6.1-cx24-337701.5
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 -5
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [2.6.1-cx24-337701.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.4...v2.6.1-cx24-337701.5) (2023-03-19)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* The variant drop down label ([2e175c1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2e175c12f24b789f913e64fff5e26b3257ccd087))
|
7
|
+
|
8
|
+
## [2.6.1-cx24-337701.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.3...v2.6.1-cx24-337701.4) (2023-03-19)
|
9
|
+
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* The variant drop down label ([71faac8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/71faac8db3a4a03d1addcda266b21616c5b0f044))
|
14
|
+
|
1
15
|
## [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
16
|
|
3
17
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -374,11 +374,9 @@ const ProductData = {
|
|
374
374
|
return variant;
|
375
375
|
});
|
376
376
|
|
377
|
-
|
378
|
-
if (
|
379
|
-
|
380
|
-
variants = this.moveArray(variants, defaultKey, 0);
|
381
|
-
}
|
377
|
+
let defaultKey = productData.sku.map(e => e.default).indexOf(true);
|
378
|
+
if (defaultKey)
|
379
|
+
variants = this.moveArray(Object.values(variants), defaultKey, 0);
|
382
380
|
|
383
381
|
}
|
384
382
|
|