We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180e201 commit afaedf3Copy full SHA for afaedf3
web/src/components/Table/index.js
@@ -29,15 +29,17 @@ const Table = () => {
29
columns: [
30
{
31
id: 'Checkbox',
32
- Cell: rowInfo => {
+ Cell: cellInfo => {
33
return (
34
<input
35
type="checkbox"
36
className="checkbox"
37
- name={rowInfo.row.original.name}
38
- checked={checked[rowInfo.row.id]}
+ name={cellInfo.row.original.name}
+ checked={checked[cellInfo.row.original.id]}
39
onChange={() => {
40
- checked[rowInfo.row.id] = !checked[rowInfo.row.id];
+ checked[cellInfo.row.original.id] = !checked[
41
+ cellInfo.row.original.id
42
+ ];
43
setChecked([...checked]);
44
}}
45
/>
0 commit comments