@tanstack/table-core 8.2.0 → 8.2.1

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.
@@ -613,7 +613,7 @@ declare function isSubRowSelected<TData extends RowData>(row: Row<TData>, select
613
613
  declare type CoreRow<TData extends RowData> = {
614
614
  id: string;
615
615
  index: number;
616
- original?: TData;
616
+ original: TData;
617
617
  depth: number;
618
618
  _valuesCache: Record<string, unknown>;
619
619
  getValue: <TValue>(columnId: string) => TValue;
@@ -624,7 +624,7 @@ declare type CoreRow<TData extends RowData> = {
624
624
  getAllCells: () => Cell<TData, unknown>[];
625
625
  _getAllCellsByColumnId: () => Record<string, Cell<TData, unknown>>;
626
626
  };
627
- declare const createRow: <TData extends unknown>(table: Table<TData>, id: string, original: TData | undefined, rowIndex: number, depth: number, subRows?: Row<TData>[] | undefined) => Row<TData>;
627
+ declare const createRow: <TData extends unknown>(table: Table<TData>, id: string, original: TData, rowIndex: number, depth: number, subRows?: Row<TData>[] | undefined) => Row<TData>;
628
628
 
629
629
  interface TableMeta {
630
630
  }
@@ -3563,7 +3563,7 @@
3563
3563
  const subRows = groupUpRecursively(groupedRows, depth + 1, id); // Flatten the leaf rows of the rows in this group
3564
3564
 
3565
3565
  const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
3566
- const row = createRow(table, id, undefined, index, depth);
3566
+ const row = createRow(table, id, leafRows[0].original, index, depth);
3567
3567
  Object.assign(row, {
3568
3568
  groupingColumnId: columnId,
3569
3569
  groupingValue,