@tanstack/table-core 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.
@@ -2978,7 +2978,7 @@ const createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
2978
2978
  },
2979
2979
  subRows: subRows != null ? subRows : [],
2980
2980
  getLeafRows: () => flattenBy(row.subRows, d => d.subRows),
2981
- getParentRow: () => row.parentId ? table.getRow(row.parentId) : undefined,
2981
+ getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : undefined,
2982
2982
  getParentRows: () => {
2983
2983
  let parentRows = [];
2984
2984
  let currentRow = row;
@@ -3448,7 +3448,9 @@ function getSortedRowModel() {
3448
3448
  const sortData = rows => {
3449
3449
  // This will also perform a stable sorting using the row index
3450
3450
  // if needed.
3451
- const sortedData = [...rows];
3451
+ const sortedData = rows.map(row => ({
3452
+ ...row
3453
+ }));
3452
3454
  sortedData.sort((rowA, rowB) => {
3453
3455
  for (let i = 0; i < availableSorting.length; i += 1) {
3454
3456
  var _sortEntry$desc;