thm-p3-configurator 0.0.312 → 0.0.313

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.
@@ -7,6 +7,7 @@ require("core-js/modules/esnext.iterator.filter.js");
7
7
  require("core-js/modules/esnext.iterator.find.js");
8
8
  require("core-js/modules/esnext.iterator.for-each.js");
9
9
  require("core-js/modules/esnext.iterator.map.js");
10
+ require("core-js/modules/esnext.iterator.some.js");
10
11
  require("core-js/modules/web.dom-collections.iterator.js");
11
12
  require("core-js/modules/es.weak-map.js");
12
13
  Object.defineProperty(exports, "__esModule", {
@@ -19,6 +20,7 @@ require("core-js/modules/esnext.iterator.filter.js");
19
20
  require("core-js/modules/esnext.iterator.find.js");
20
21
  require("core-js/modules/esnext.iterator.for-each.js");
21
22
  require("core-js/modules/esnext.iterator.map.js");
23
+ require("core-js/modules/esnext.iterator.some.js");
22
24
  require("core-js/modules/web.dom-collections.iterator.js");
23
25
  var _react = _interopRequireWildcard(require("react"));
24
26
  var _queries = require("../../__api__/queries");
@@ -338,8 +340,12 @@ const InternalBranchSelectorModal = () => {
338
340
  _setSelectedBranchId(undefined);
339
341
  }, [isSingleOrderPage]);
340
342
  const isLocation = _react.default.useMemo(() => {
341
- var _branchTypes$byId$aut, _authSession$branch2;
342
- return (branchTypes === null || branchTypes === void 0 || (_branchTypes$byId$aut = branchTypes.byId[authSession === null || authSession === void 0 || (_authSession$branch2 = authSession.branch) === null || _authSession$branch2 === void 0 || (_authSession$branch2 = _authSession$branch2.organisatietype) === null || _authSession$branch2 === void 0 ? void 0 : _authSession$branch2[0]]) === null || _branchTypes$byId$aut === void 0 ? void 0 : _branchTypes$byId$aut.title) === _constants__.LOCATION_TYPE;
343
+ var _authSession$branch2;
344
+ const orgTypes = (authSession === null || authSession === void 0 || (_authSession$branch2 = authSession.branch) === null || _authSession$branch2 === void 0 ? void 0 : _authSession$branch2.organisatietype) || [];
345
+ return orgTypes.some(typeId => {
346
+ var _branchTypes$byId;
347
+ return (branchTypes === null || branchTypes === void 0 || (_branchTypes$byId = branchTypes.byId) === null || _branchTypes$byId === void 0 || (_branchTypes$byId = _branchTypes$byId[typeId]) === null || _branchTypes$byId === void 0 ? void 0 : _branchTypes$byId.title) === _constants__.LOCATION_TYPE;
348
+ });
343
349
  }, [branchTypes, authSession]);
344
350
  const [{
345
351
  selectedBranch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.312",
3
+ "version": "0.0.313",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",