@applica-software-guru/react-admin 1.4.0-beta.5 → 1.4.0-beta.6

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.
@@ -20472,7 +20472,7 @@ function mU(e) {
20472
20472
  }
20473
20473
  });
20474
20474
  }, [r.palette.mode]), Pe(() => {
20475
- t.isImpersonating().then((X) => {
20475
+ t == null || t.isImpersonating().then((X) => {
20476
20476
  var z;
20477
20477
  v(!X && ((z = n == null ? void 0 : n.data) == null ? void 0 : z.needToChangePassword) === !0);
20478
20478
  });
@@ -20733,11 +20733,11 @@ const SU = () => {
20733
20733
  ] }) });
20734
20734
  }, RU = () => {
20735
20735
  const e = Xt(), t = Ui(), n = Se(
20736
- () => t.stopImpersonate().then(() => document.location.href = "/"),
20736
+ () => t == null ? void 0 : t.stopImpersonate().then(() => document.location.href = "/"),
20737
20737
  [t == null ? void 0 : t.stopImpersonating]
20738
20738
  ), [r, o] = je(!1);
20739
20739
  return Pe(() => {
20740
- t.isImpersonating && t.isImpersonating().then((a) => o(a));
20740
+ t.isImpersonating && (t == null || t.isImpersonating().then((a) => o(a)));
20741
20741
  }, [t, o]), r ? /* @__PURE__ */ h(vo, { children: /* @__PURE__ */ $(Dr, { onClick: n, children: [
20742
20742
  /* @__PURE__ */ h(Pr, { children: /* @__PURE__ */ h(nv, {}) }),
20743
20743
  /* @__PURE__ */ h(Gn, { primary: e("ra.auth.stop_impersonate") })