magneto365.ui 2.70.3 → 2.70.5

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/esm/index.js CHANGED
@@ -4713,10 +4713,8 @@ var JobCardDesktop = function (_a) {
4713
4713
  var optionsRef = useRef(null);
4714
4714
  var width = useWithElement(optionsRef);
4715
4715
  var citiesformatted = useMemo(function () {
4716
- if ((cities === null || cities === void 0 ? void 0 : cities.length) > 5) {
4717
- return cities === null || cities === void 0 ? void 0 : cities.slice(0, 5).join(', ');
4718
- }
4719
- return cities === null || cities === void 0 ? void 0 : cities.join(', ');
4716
+ var safeCities = Array.isArray(cities) ? cities : [];
4717
+ return safeCities.length > 5 ? safeCities.slice(0, 5).join(', ') : safeCities.join(', ');
4720
4718
  }, [cities]);
4721
4719
  return (React.createElement("div", { className: cx$J("".concat(classMUI, "-card-jobs__container"), jobOpen && "".concat(classMUI, "-card-jobs--job-open")) },
4722
4720
  React.createElement("article", { onClick: showDetail, className: cx$J("".concat(classMUI, "-card-jobs"), urgent && "".concat(classMUI, "-card-jobs--urgent")) },