ordering-ui-external 1.5.2 → 1.5.3
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.
|
@@ -277,7 +277,7 @@ var BusinessListingSearchUI = function BusinessListingSearchUI(props) {
|
|
|
277
277
|
});
|
|
278
278
|
})))), /*#__PURE__*/_react.default.createElement(_styles.ProductsList, null, (_businessesSearchList6 = businessesSearchList.businesses) === null || _businessesSearchList6 === void 0 ? void 0 : _businessesSearchList6.filter(function (business) {
|
|
279
279
|
var _business$categories;
|
|
280
|
-
return (business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length)
|
|
280
|
+
return (business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length) >= 0;
|
|
281
281
|
}).map(function (business) {
|
|
282
282
|
var _theme$images, _theme$images$dummies, _theme$images2, _theme$images2$dummie, _orderState$options8, _orderState$options9, _business$categories2;
|
|
283
283
|
return /*#__PURE__*/_react.default.createElement(_styles.SingleBusinessSearch, {
|
package/package.json
CHANGED
|
@@ -321,7 +321,7 @@ export const BusinessListingSearchUI = (props) => {
|
|
|
321
321
|
</BusinessList>
|
|
322
322
|
</BusinessListWrapper>
|
|
323
323
|
<ProductsList>
|
|
324
|
-
{businessesSearchList.businesses?.filter(business => business?.categories?.length
|
|
324
|
+
{businessesSearchList.businesses?.filter(business => business?.categories?.length >= 0).map(business => (
|
|
325
325
|
<SingleBusinessSearch key={`card-${business?.id}`}>
|
|
326
326
|
<BusinessInfo>
|
|
327
327
|
{(business?.logo || theme.images?.dummies?.businessLogo) && (
|