@bigbinary/neeto-molecules 1.0.72 → 1.0.73

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/Sidebar.js CHANGED
@@ -32139,11 +32139,12 @@ var Header = function Header() {
32139
32139
  data = _useFetchNeetoApps.data;
32140
32140
  var homePath = "/";
32141
32141
  if (data !== null && data !== void 0 && data.neetoApps) {
32142
- var _findBy = findBy({
32143
- name: productName
32144
- }, data.neetoApps),
32145
- url = _findBy.url;
32146
- homePath = new URL(url).pathname;
32142
+ var thisApp = findBy({
32143
+ name: productName
32144
+ }, data.neetoApps);
32145
+ if (thisApp !== null && thisApp !== void 0 && thisApp.url) {
32146
+ homePath = new URL(thisApp === null || thisApp === void 0 ? void 0 : thisApp.url).pathname;
32147
+ }
32147
32148
  }
32148
32149
  return /*#__PURE__*/React.createElement("div", {
32149
32150
  className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",