@plasmicpkgs/commerce 0.0.175 → 0.0.177
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/dist/commerce.cjs.development.js +2 -2
- package/dist/commerce.cjs.development.js.map +1 -1
- package/dist/commerce.cjs.production.min.js +1 -1
- package/dist/commerce.cjs.production.min.js.map +1 -1
- package/dist/commerce.esm.js +2 -2
- package/dist/commerce.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -1474,9 +1474,9 @@ var productBoxMeta = {
|
|
|
1474
1474
|
options: function options(props, ctx) {
|
|
1475
1475
|
var _ctx$products$map;
|
|
1476
1476
|
return (_ctx$products$map = ctx == null ? void 0 : ctx.products.map(function (product) {
|
|
1477
|
-
var _product$slug;
|
|
1477
|
+
var _product$images, _product$slug;
|
|
1478
1478
|
return {
|
|
1479
|
-
imgUrl: product.images[0].url,
|
|
1479
|
+
imgUrl: (_product$images = product.images) == null || (_product$images = _product$images[0]) == null ? void 0 : _product$images.url,
|
|
1480
1480
|
value: product.id,
|
|
1481
1481
|
label: (_product$slug = product.slug) != null ? _product$slug : product.name,
|
|
1482
1482
|
footer: React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement("strong", null, product.name)), React__default.createElement("div", null, product.slug))
|