Skip to content

Commit

Permalink
fix: checked species when changing pages (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
tranquanghuy0801 authored Jul 10, 2021
1 parent dea313e commit 84b5750
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SpeciesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ const SpeciesTable = (props) => {
<TableCell>
<Checkbox
onChange={(e) => handleSelect(e.target.checked, species.id)}
checked={selected.includes(species.id)}
/>
</TableCell>
<TableCell component="th" scope="row">
Expand Down

0 comments on commit 84b5750

Please sign in to comment.