@tanstack/svelte-table 8.10.3 → 8.10.5

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.
@@ -2992,7 +2992,7 @@
2992
2992
  },
2993
2993
  subRows: subRows != null ? subRows : [],
2994
2994
  getLeafRows: () => flattenBy(row.subRows, d => d.subRows),
2995
- getParentRow: () => row.parentId ? table.getRow(row.parentId) : undefined,
2995
+ getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : undefined,
2996
2996
  getParentRows: () => {
2997
2997
  let parentRows = [];
2998
2998
  let currentRow = row;
@@ -3462,7 +3462,9 @@
3462
3462
  const sortData = rows => {
3463
3463
  // This will also perform a stable sorting using the row index
3464
3464
  // if needed.
3465
- const sortedData = [...rows];
3465
+ const sortedData = rows.map(row => ({
3466
+ ...row
3467
+ }));
3466
3468
  sortedData.sort((rowA, rowB) => {
3467
3469
  for (let i = 0; i < availableSorting.length; i += 1) {
3468
3470
  var _sortEntry$desc;