Skip to content

Commit 4fd6e03

Browse files
Jacob Wasilkowskijwasilgeo
Jacob Wasilkowski
authored andcommitted
update demo column mapping
1 parent e0a5874 commit 4fd6e03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: website/demos/RowGrouping.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ export default function RowGrouping({ direction }: Props) {
203203
</label>
204204

205205
<TreeDataGrid
206-
columns={columns.map((c) => ({ ...c, frozen: areGroupColumnsFrozen }))}
206+
columns={columns.map((c) => ({
207+
...c,
208+
...(selectedOptions.includes(c.key) ? { frozen: areGroupColumnsFrozen } : {})
209+
}))}
207210
rows={rows}
208211
rowKeyGetter={rowKeyGetter}
209212
selectedRows={selectedRows}

0 commit comments

Comments
 (0)