Skip to content

Commit

Permalink
docs: row accessor bug in example code block (#5893)
Browse files Browse the repository at this point in the history
Accessor function accepts row object so to access age we should access it from row.
  • Loading branch information
valerii15298 authored Feb 10, 2025
1 parent 36dede1 commit b1506a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const columns = [
},
{
header: 'Age',
accessorFn: info => info.age,
accessorFn: row => row.info.age,
},
//...
]
Expand Down

0 comments on commit b1506a7

Please # to comment.