Skip to content

Commit

Permalink
update demo column mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Wasilkowski authored and jwasilgeo committed Feb 1, 2024
1 parent e0a5874 commit 4fd6e03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/demos/RowGrouping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ export default function RowGrouping({ direction }: Props) {
</label>

<TreeDataGrid
columns={columns.map((c) => ({ ...c, frozen: areGroupColumnsFrozen }))}
columns={columns.map((c) => ({
...c,
...(selectedOptions.includes(c.key) ? { frozen: areGroupColumnsFrozen } : {})
}))}
rows={rows}
rowKeyGetter={rowKeyGetter}
selectedRows={selectedRows}
Expand Down

0 comments on commit 4fd6e03

Please sign in to comment.