Fix checkboxes in NestsContainer.tsx

This commit is contained in:
Matthew Penner 2021-01-01 16:34:10 -07:00
parent f72402b5fa
commit 04799fa44b
2 changed files with 4 additions and 8 deletions

View file

@ -23,9 +23,9 @@ const RowCheckbox = ({ id }: { id: number}) => {
checked={isChecked}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
if (e.currentTarget.checked) {
appendSelectedNest(name);
appendSelectedNest(id);
} else {
removeSelectedNest(name);
removeSelectedNest(id);
}
}}
/>