@nuskin/ns-product-lib 2.6.1-cx24-337701.3 → 2.6.1-cx24-337701.4

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.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)
2
+
3
+
4
+ ### Fix
5
+
6
+ * The variant drop down label ([71faac8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/71faac8db3a4a03d1addcda266b21616c5b0f044))
7
+
1
8
  ## [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
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.6.1-cx24-337701.3",
3
+ "version": "2.6.1-cx24-337701.4",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -374,11 +374,9 @@ const ProductData = {
374
374
  return variant;
375
375
  });
376
376
 
377
- //check variants for default and put it in the first element of the variants array
378
- if (variants.length > 1) {
379
- let defaultKey = productData.sku.map(e => e.default).indexOf(true);
377
+ let defaultKey = productData.sku.map(e => e.default).indexOf(true);
378
+ if (defaultKey)
380
379
  variants = this.moveArray(variants, defaultKey, 0);
381
- }
382
380
 
383
381
  }
384
382