@espresso-lab/mantine-data-table 1.9.39 → 1.9.40

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.
package/dist/index.es.js CHANGED
@@ -4593,12 +4593,13 @@ async function Ft(t) {
4593
4593
  const e = await t.text();
4594
4594
  if (!e)
4595
4595
  throw new Error(`HTTP ${t.status}: ${t.statusText}`);
4596
+ let r = null;
4596
4597
  try {
4597
- const r = JSON.parse(e);
4598
- throw r.message ? new Error(r.message) : r.error ? new Error(r.error) : new Error(e);
4598
+ r = JSON.parse(e);
4599
4599
  } catch {
4600
4600
  throw new Error(e);
4601
4601
  }
4602
+ throw r?.message ? new Error(r.message) : r?.error ? new Error(r.error) : new Error(e);
4602
4603
  }
4603
4604
  function Mc() {
4604
4605
  const t = localStorage.getItem("a360.assumed-org");