@nuskin/ns-product-lib 2.13.0-cx24-5107.6 → 2.13.0-cx24-5107.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/graph-ql/product.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.13.0-cx24-5107.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.6...v2.13.0-cx24-5107.7) (2023-09-29)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* single variant ([91fc1c4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/91fc1c40aa0ac055b330373983f0055d8455176c))
|
7
|
+
|
1
8
|
# [2.13.0-cx24-5107.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.5...v2.13.0-cx24-5107.6) (2023-09-29)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/graph-ql/product.js
CHANGED
@@ -195,7 +195,7 @@ function mapProduct(product, market, locale, config) {
|
|
195
195
|
function mapVariants(product) {
|
196
196
|
|
197
197
|
//return if it has no variant
|
198
|
-
if (!product.variants) {
|
198
|
+
if (!product.variants || (product.variants && product.variants.length === 1)) {
|
199
199
|
return [];
|
200
200
|
}
|
201
201
|
|