File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-legit-table" ,
3
- "version" : " 0.2.10 " ,
3
+ "version" : " 0.3.0 " ,
4
4
"description" : " the simplest table component out there" ,
5
5
"main" : " lib/table.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ export default class Rows extends React.Component{
18
18
19
19
for ( let item in row ) {
20
20
let value = row [ item ]
21
- if ( this . props . modifyAll ) value = this . props . modifyAll ( row [ item ] , row )
22
- else if ( this . props . modify [ item ] ) value = this . props . modify [ item ] ( row [ item ] , row )
21
+ if ( this . props . modifyAll ) value = this . props . modifyAll ( row [ item ] , item , row )
22
+ else if ( this . props . modify [ item ] ) value = this . props . modify [ item ] ( row [ item ] , item , row )
23
23
24
24
rowList . push ( < td key = { uniqueId ( row [ item ] ) } > { value } </ td > )
25
25
}
You can’t perform that action at this time.
0 commit comments