Skip to content

Commit

Permalink
fix: Support additional parameters in intercepting calls to table cel…
Browse files Browse the repository at this point in the history
…l renderer

The current implementation prevents us (cloudscape) from releasing a new feature in the table. 

Please note: We don't generally expect internal functions such as this to be called outside of the table component.
  • Loading branch information
fa7ad authored and diehbria committed Mar 9, 2023
1 parent 7d474d4 commit ce2be51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/related-table/src/RelatedTable/RelatedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function RelatedTable<T>(props: RelatedTableProps<ITreeNode<T>>) {
const columnToExpand = columns[zeroBasedColumnPos];
columns[zeroBasedColumnPos] = {
...columnToExpand,
cell: (node) => {
const cell = columnToExpand?.cell(node);
cell: (node, ...rest) => {
const cell = columnToExpand?.cell(node, ...rest);
return (
<ButtonWithTreeLines
alwaysExpanded={isFiltering}
Expand Down

0 comments on commit ce2be51

Please sign in to comment.