@espresso-lab/mantine-data-table 1.10.3 → 1.10.4

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
@@ -8320,7 +8320,7 @@ function eh(t) {
8320
8320
  if (e[4] !== k || e[5] !== n || e[6] !== a || e[7] !== u || e[8] !== r || e[9] !== _ || e[10] !== S || e[11] !== i || e[12] !== v) {
8321
8321
  H = Symbol.for("react.early_return_sentinel");
8322
8322
  e: {
8323
- const U = n.filter(ih), K = U.filter(oh).map(nh);
8323
+ const U = n.filter(ih), K = U.filter(oh).reduce(nh, []);
8324
8324
  let ne;
8325
8325
  e[19] !== S ? (ne = (s) => S.some((p) => p.id === s.id), e[19] = S, e[20] = ne) : ne = e[20];
8326
8326
  const te = ne;
@@ -8413,11 +8413,12 @@ function th(t) {
8413
8413
  function rh(t) {
8414
8414
  return t.stopPropagation();
8415
8415
  }
8416
- function nh(t) {
8417
- return {
8418
- value: t.column.accessor ?? t.id,
8419
- label: t.column.title ?? t.id
8420
- };
8416
+ function nh(t, e) {
8417
+ const r = e.column.accessor ?? e.id;
8418
+ return t.some((n) => n.value === r) || t.push({
8419
+ value: r,
8420
+ label: e.column.title ?? e.id
8421
+ }), t;
8421
8422
  }
8422
8423
  function oh(t) {
8423
8424
  return t.column.sortable !== !1;