@applica-software-guru/react-admin 1.3.132 → 1.3.133

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.
@@ -30291,7 +30291,10 @@ const hJ = ({
30291
30291
  }) => {
30292
30292
  const a = O.useMemo(() => i.errorHandler ? i.errorHandler : new pJ({ apiUrl: t }), [t, i.errorHandler]), l = console.error, A = O.useCallback(
30293
30293
  function(u, ...g) {
30294
- const f = r(u instanceof ErrorEvent ? u : u.replace(/%s/g, () => g.shift()));
30294
+ var C;
30295
+ if (!u)
30296
+ return !1;
30297
+ const f = r(u instanceof ErrorEvent ? u : (C = u == null ? void 0 : u.toString()) == null ? void 0 : C.replace(/%s/g, () => g.shift()));
30295
30298
  if (f.isCatched())
30296
30299
  return !1;
30297
30300
  f.logError() && (u instanceof ErrorEvent ? a.handle(u) : a.handle(new ErrorEvent("window.onerror", { error: u, message: u.toString() }))), f.displayError() && l.apply(console, arguments);