diff --git a/src/components/engines/EnginesPage.tsx b/src/components/engines/EnginesPage.tsx index eb925f24..77f1c4c2 100644 --- a/src/components/engines/EnginesPage.tsx +++ b/src/components/engines/EnginesPage.tsx @@ -151,13 +151,14 @@ export default function EnginesPage() { + onChange={(e) => { + const checked = e.currentTarget.checked; setEngines(async (prev) => { const copy = [...(await prev)]; - copy[selected].loaded = e.currentTarget.checked; + copy[selected].loaded = checked; return copy; - }) - } + }); + }} /> @@ -190,6 +191,22 @@ export default function EnginesPage() { }} /> + + + + )}