@tanstack/react-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.
@@ -3012,7 +3012,7 @@
3012
3012
  },
3013
3013
  subRows: subRows != null ? subRows : [],
3014
3014
  getLeafRows: () => flattenBy(row.subRows, d => d.subRows),
3015
- getParentRow: () => row.parentId ? table.getRow(row.parentId) : undefined,
3015
+ getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : undefined,
3016
3016
  getParentRows: () => {
3017
3017
  let parentRows = [];
3018
3018
  let currentRow = row;
@@ -3482,7 +3482,9 @@
3482
3482
  const sortData = rows => {
3483
3483
  // This will also perform a stable sorting using the row index
3484
3484
  // if needed.
3485
- const sortedData = [...rows];
3485
+ const sortedData = rows.map(row => ({
3486
+ ...row
3487
+ }));
3486
3488
  sortedData.sort((rowA, rowB) => {
3487
3489
  for (let i = 0; i < availableSorting.length; i += 1) {
3488
3490
  var _sortEntry$desc;