@crystaldesign/diva-navigator 26.4.0-rc.6 → 26.4.0-rc.7

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.
@@ -2472,10 +2472,8 @@ function Scanner(_ref) {
2472
2472
  var isWrapperOrg = !(organization !== null && organization !== void 0 && organization.type) && !(organization !== null && organization !== void 0 && organization.parentType) || organizationType === 'SUPPLIER' || organizationType === 'SUPLIER';
2473
2473
  var handleResult = function handleResult(result) {
2474
2474
  var isSameOrg = !result.organizationId || result.organizationId === organization._id;
2475
- if (isSameOrg) {
2475
+ if (isSameOrg || !isWrapperOrg) {
2476
2476
  openResultInCurrentOrg(result, openComponent, closeModal);
2477
- } else if (isWrapperOrg) {
2478
- openResultInTargetOrg(result, openComponent, closeModal);
2479
2477
  } else {
2480
2478
  onResult(result);
2481
2479
  }
@@ -2689,7 +2687,6 @@ function ScannerModalContent() {
2689
2687
  jwt = _useDivaCore$state.jwt,
2690
2688
  apiConfig = _useDivaCore$state.apiConfig,
2691
2689
  organization = _useDivaCore$state.organization;
2692
- _useDivaCore.handler.productHandler;
2693
2690
  var _React$useState = React.useState(false),
2694
2691
  _React$useState2 = _slicedToArray(_React$useState, 2),
2695
2692
  showScanner = _React$useState2[0],
@@ -1 +1 @@
1
- {"version":3,"file":"Scanner.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/QrCodeScanner/Scanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EACL,aAAa,EAOd,MAAM,SAAS,CAAC;AAIjB,UAAU,YAAY;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC3C;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,qBAgHjD"}
1
+ {"version":3,"file":"Scanner.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/QrCodeScanner/Scanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,OAAO,EAAE,aAAa,EAA0F,MAAM,SAAS,CAAC;AAIhI,UAAU,YAAY;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC3C;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,qBA8GjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/QrCodeScanner/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgL1B,MAAM,CAAC,OAAO,gCAyBb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/QrCodeScanner/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AA8K1B,MAAM,CAAC,OAAO,gCAyBb"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-navigator",
3
- "version": "26.4.0-rc.6",
3
+ "version": "26.4.0-rc.7",
4
4
  "license": "MIT",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^6.5.0",
@@ -25,5 +25,5 @@
25
25
  },
26
26
  "module": "build/esm/index.js",
27
27
  "types": "./build/types/navigator/src/index.d.ts",
28
- "gitHead": "da11a9c23e25ac5c16db4bf18d87d2afd944a443"
28
+ "gitHead": "180c7f411275cdc3144c13c7e7c4c56e8b84e9f2"
29
29
  }