@crystaldesign/diva-backoffice 24.8.0-beta.21 → 24.8.0-beta.22

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.
@@ -12722,6 +12722,7 @@ var _default$1 = /*#__PURE__*/function () {
12722
12722
 
12723
12723
  var storeContext = /*#__PURE__*/createContext(null);
12724
12724
  var StoreProvider = function StoreProvider(_ref) {
12725
+ var _location$pathname;
12725
12726
  var children = _ref.children,
12726
12727
  settings = _ref.settings;
12727
12728
  _ref.isVisible;
@@ -12744,14 +12745,15 @@ var StoreProvider = function StoreProvider(_ref) {
12744
12745
  var navigate = useNavigate();
12745
12746
  var _useState = useState(new _default$1(actions, handler, t, navigate, {
12746
12747
  searchParams: searchParams,
12747
- path: location.pathname
12748
+ path: (_location$pathname = location.pathname) !== null && _location$pathname !== void 0 ? _location$pathname : '/'
12748
12749
  })),
12749
12750
  _useState2 = _slicedToArray(_useState, 1),
12750
12751
  store = _useState2[0];
12751
12752
  useEffect(function () {
12753
+ var _location$pathname2;
12752
12754
  store.updateNavigationState({
12753
12755
  searchParams: searchParams,
12754
- path: location.pathname
12756
+ path: (_location$pathname2 = location.pathname) !== null && _location$pathname2 !== void 0 ? _location$pathname2 : '/'
12755
12757
  });
12756
12758
  store.dataStore.setUserData(jwt, nToken, user);
12757
12759
  store.dataStore.setOrganizationData(organization);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.8.0-beta.21",
3
+ "version": "24.8.0-beta.22",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^5.15.0",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@ant-design/icons": "5.0.1",
17
17
  "@babel/runtime": "7.18.0",
18
- "@crystaldesign/spreadsheet": "24.8.0-beta.21",
18
+ "@crystaldesign/spreadsheet": "24.8.0-beta.22",
19
19
  "@google/model-viewer": "3.4.0",
20
20
  "@tinymce/tinymce-react": "^3.13.0",
21
21
  "ag-charts-community": "^9.3.1",
@@ -51,5 +51,5 @@
51
51
  },
52
52
  "module": "build/esm/index.js",
53
53
  "types": "./build/types/backoffice/src/index.d.ts",
54
- "gitHead": "0f43d77c69735fb34d3d27507f8e14f2fd0cc425"
54
+ "gitHead": "8756c0bdce1dd1517ace1ebb4ce446d78490543f"
55
55
  }