diff --git a/packages/table-core/src/core/row.ts b/packages/table-core/src/core/row.ts index 0faf138f93..efc6edf97c 100644 --- a/packages/table-core/src/core/row.ts +++ b/packages/table-core/src/core/row.ts @@ -154,7 +154,7 @@ export const createRow = ( 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[] = [] let currentRow = row