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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.43.47",
3
+ "version": "1.43.48",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -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.suboptions.map(suboption => (
303
+ {Object.values(option?.suboptions)?.map?.(suboption => (
304
304
  <React.Fragment key={suboption.id}>
305
305
  <li>
306
306
  <span>