added handleButton to cancel the machine

This commit is contained in:
2026-01-27 13:47:38 -06:00
parent 9e0fad5c34
commit fd97c21740
4 changed files with 67 additions and 37 deletions
+1
View File
@@ -26,6 +26,7 @@ export default function Toggle({ options, defaultView }: ToggleProps) {
const params = new URLSearchParams(searchParams.toString());
params.set("key", key);
params.delete("machine");
router.replace(`${pathname}?${params.toString()}`);
};