Skip to content

Commit

Permalink
fix: getParentRow should search all row model rows (#5121)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy authored Oct 7, 2023
1 parent f8d5d43 commit f055715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table-core/src/core/row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const createRow = <TData extends RowData>(
row.getValue(columnId) ?? table.options.renderFallbackValue,
subRows: subRows ?? [],
getLeafRows: () => flattenBy(row.subRows, d => d.subRows),
getParentRow: () => (row.parentId ? table.getRow(row.parentId) : undefined),
getParentRow: () => (row.parentId ? table.getRow(row.parentId, true) : undefined),
getParentRows: () => {
let parentRows: Row<TData>[] = []
let currentRow = row
Expand Down

0 comments on commit f055715

Please sign in to comment.