ordering-ui-external 14.2.13 → 14.2.14

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.
@@ -138,7 +138,9 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
138
138
  var hideSearchSection = hideCities && hideSearch && hideFilter;
139
139
  var isAllCategoriesHidden = (theme === null || theme === void 0 || (_theme$business_listi7 = theme.business_listing_view) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.components) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.categories) === null || _theme$business_listi7 === void 0 ? void 0 : _theme$business_listi7.hidden) || (props === null || props === void 0 ? void 0 : props.franchiseId);
140
140
  var businessesIds = businessesList.businesses && ((_businessesList$busin = businessesList.businesses) === null || _businessesList$busin === void 0 ? void 0 : _businessesList$busin.map(function (business) {
141
- return business.id;
141
+ return business === null || business === void 0 ? void 0 : business.id;
142
+ }).filter(function (id) {
143
+ return id;
142
144
  }));
143
145
  var isChew = (theme === null || theme === void 0 || (_theme$header = theme.header) === null || _theme$header === void 0 || (_theme$header = _theme$header.components) === null || _theme$header === void 0 || (_theme$header = _theme$header.layout) === null || _theme$header === void 0 || (_theme$header = _theme$header.type) === null || _theme$header === void 0 ? void 0 : _theme$header.toLowerCase()) === 'chew';
144
146
  var cateringTypeString = (orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type) === 7 ? 'catering_delivery' : (orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.type) === 8 ? 'catering_pickup' : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "14.2.13",
3
+ "version": "14.2.14",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -100,7 +100,7 @@ const BusinessesListingUI = (props) => {
100
100
  const hideSearchSection = hideCities && hideSearch && hideFilter
101
101
  const isAllCategoriesHidden = theme?.business_listing_view?.components?.categories?.hidden || props?.franchiseId
102
102
  const businessesIds = businessesList.businesses &&
103
- businessesList.businesses?.map(business => business.id)
103
+ businessesList.businesses?.map(business => business?.id).filter(id => id)
104
104
  const isChew = theme?.header?.components?.layout?.type?.toLowerCase() === 'chew'
105
105
  const cateringTypeString = orderState?.options?.type === 7
106
106
  ? 'catering_delivery'