ordering-ui-admin-external 1.43.47 → 1.43.48
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/_bundles/{ordering-ui-admin.6fea870b7ba98ed968db.js → ordering-ui-admin.594015b3625196ab3ad4.js} +2 -2
- package/_modules/components/Orders/ProductItemAccordion/index.js +2 -1
- package/package.json +1 -1
- package/src/components/Orders/ProductItemAccordion/index.js +1 -1
- /package/_bundles/{ordering-ui-admin.6fea870b7ba98ed968db.js.LICENSE.txt → ordering-ui-admin.594015b3625196ab3ad4.js.LICENSE.txt} +0 -0
|
@@ -281,11 +281,12 @@ var ProductItemAccordion = exports.ProductItemAccordion = function ProductItemAc
|
|
|
281
281
|
key: ingredient.id
|
|
282
282
|
}, /*#__PURE__*/_react.default.createElement("span", null, t('NO', 'No'), " ", ingredient.name));
|
|
283
283
|
})), ((_productInfo$options2 = productInfo().options) === null || _productInfo$options2 === void 0 ? void 0 : _productInfo$options2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, null, Array.isArray(productInfo().options) && productInfo().options.map(function (option, i) {
|
|
284
|
+
var _Object$values, _Object$values$map;
|
|
284
285
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
285
286
|
key: i
|
|
286
287
|
}, /*#__PURE__*/_react.default.createElement("p", null, option.name), /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, {
|
|
287
288
|
className: "suboption"
|
|
288
|
-
}, option.suboptions.map(function (suboption) {
|
|
289
|
+
}, (_Object$values = Object.values(option === null || option === void 0 ? void 0 : option.suboptions)) === null || _Object$values === void 0 || (_Object$values$map = _Object$values.map) === null || _Object$values$map === void 0 ? void 0 : _Object$values$map.call(_Object$values, function (suboption) {
|
|
289
290
|
var _suboption$half_price2;
|
|
290
291
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
291
292
|
key: suboption.id
|
package/package.json
CHANGED
|
@@ -300,7 +300,7 @@ export const ProductItemAccordion = (props) => {
|
|
|
300
300
|
<li key={i}>
|
|
301
301
|
<p>{option.name}</p>
|
|
302
302
|
<ProductOptionsList className='suboption'>
|
|
303
|
-
{option
|
|
303
|
+
{Object.values(option?.suboptions)?.map?.(suboption => (
|
|
304
304
|
<React.Fragment key={suboption.id}>
|
|
305
305
|
<li>
|
|
306
306
|
<span>
|