Skip to content

Commit

Permalink
[docs] Improve Data Grid migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi committed May 1, 2024
1 parent ad0c9bf commit afdb29e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ See the [Direct state access](/x/react-data-grid/state/#direct-selector-access)

```diff
-groupingValueGetter: (params) => params.value.name,
+groupingValueGetter: (value: { name: string }) => value.name,
+groupingValueGetter: (value: { name: string }, row, column, apiRef) => value.name,
```

### Density
Expand Down

0 comments on commit afdb29e

Please sign in to comment.