@ikas/storefront 1.0.16-alpha.2 → 1.0.16
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/build/index.es.js +3 -0
- package/build/index.js +3 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -38427,6 +38427,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
38427
38427
|
(idList === null || idList === void 0 ? void 0 : idList.map(function (pID) {
|
|
38428
38428
|
var product = response_1.data.find(function (p) { return p.id === pID.productId; });
|
|
38429
38429
|
var variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.id === pID.variantId; });
|
|
38430
|
+
if (!(variant === null || variant === void 0 ? void 0 : variant.isActive)) {
|
|
38431
|
+
variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.isActive; });
|
|
38432
|
+
}
|
|
38430
38433
|
if (product && variant)
|
|
38431
38434
|
return new IkasProductDetail(product, variant.variantValues);
|
|
38432
38435
|
}).filter(function (p) { return !!p; })) || [];
|
package/build/index.js
CHANGED
|
@@ -38407,6 +38407,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
38407
38407
|
(idList === null || idList === void 0 ? void 0 : idList.map(function (pID) {
|
|
38408
38408
|
var product = response_1.data.find(function (p) { return p.id === pID.productId; });
|
|
38409
38409
|
var variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.id === pID.variantId; });
|
|
38410
|
+
if (!(variant === null || variant === void 0 ? void 0 : variant.isActive)) {
|
|
38411
|
+
variant = product === null || product === void 0 ? void 0 : product.variants.find(function (v) { return v.isActive; });
|
|
38412
|
+
}
|
|
38410
38413
|
if (product && variant)
|
|
38411
38414
|
return new IkasProductDetail(product, variant.variantValues);
|
|
38412
38415
|
}).filter(function (p) { return !!p; })) || [];
|