Skip to content
Snippets Groups Projects
Commit bddc48eb authored by Odin Aas's avatar Odin Aas :cry:
Browse files

checkboxes check correctly

parent b22fdd6b
No related branches found
No related tags found
1 merge request!66Dev branch
Pipeline #26052 passed
......@@ -237,7 +237,7 @@ function Overview() {
<div className='w-[100%] h-[100%] flex justify-center items-center'>
<Checkbox
checked={building.active}
onChange={_ => {
onCheckedChange={_ => {
building.active = !building.active;
buildingsState.checked = setChecked(buildingsState.buildings);
setRebuild(!rebuild)}}
......@@ -259,7 +259,7 @@ function Overview() {
<div className='w-[100%] h-[100%] flex justify-center items-center'>
<Checkbox
checked={department.active}
onChange={_ => {
onCheckedChange={_ => {
department.active = !department.active;
buildingsState.checked = setChecked(buildingsState.buildings);
setRebuild(!rebuild)}}
......@@ -277,7 +277,7 @@ function Overview() {
<div className='w-[100%] h-[100%] flex justify-center items-center'>
<Checkbox
checked={machine.active}
onChange={_ => {
onCheckedChange={_ => {
machine.active = !machine.active;
buildingsState.checked = setChecked(buildingsState.buildings);
setRebuild(!rebuild)}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment