@nuskin/ns-product-lib 2.6.1-cx24-337701.10 → 2.6.1-cx24-337701.12
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/src/productData.js +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## [2.6.1-cx24-337701.12](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.11...v2.6.1-cx24-337701.12) (2023-03-20)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* The variant drop down label ([235a252](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/235a252cd59a94704400743e51d043d2ca2b9074))
|
7
|
+
* The variant drop down label ([e43614e](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/e43614ece7f3bb7d8c0d12743ab02b90427cbbb9))
|
8
|
+
|
9
|
+
## [2.6.1-cx24-337701.11](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.10...v2.6.1-cx24-337701.11) (2023-03-20)
|
10
|
+
|
11
|
+
|
12
|
+
### Fix
|
13
|
+
|
14
|
+
* The variant drop down label ([de58922](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/de589221aee054cbfb765117a44cd2fca4575468))
|
15
|
+
|
1
16
|
## [2.6.1-cx24-337701.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.6.1-cx24-337701.9...v2.6.1-cx24-337701.10) (2023-03-20)
|
2
17
|
|
3
18
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -345,7 +345,7 @@ const ProductData = {
|
|
345
345
|
|
346
346
|
moveArray: function (arr, from, to) {
|
347
347
|
arr.splice(to, 0, arr.splice(from, 1)[0]);
|
348
|
-
return arr;
|
348
|
+
return { arr };
|
349
349
|
},
|
350
350
|
|
351
351
|
|
@@ -376,7 +376,7 @@ const ProductData = {
|
|
376
376
|
});
|
377
377
|
|
378
378
|
let defaultKey = productData.sku.map(e => e.default).indexOf(true)
|
379
|
-
if (defaultKey
|
379
|
+
if (defaultKey)
|
380
380
|
variants = this.moveArray(Object.values(variants), defaultKey, 0);
|
381
381
|
}
|
382
382
|
|