diff --git a/ui/src/routes/devices.$id.settings.general.reboot.tsx b/ui/src/routes/devices.$id.settings.general.reboot.tsx index db0e0530..c3347f14 100644 --- a/ui/src/routes/devices.$id.settings.general.reboot.tsx +++ b/ui/src/routes/devices.$id.settings.general.reboot.tsx @@ -9,13 +9,9 @@ export default function SettingsGeneralRebootRoute() { const { send } = useJsonRpc(); const onConfirmUpdate = useCallback(() => { - // This is where we send the RPC to the golang binary - send("reboot", {force: true}); + send("reboot", { force: true}); }, [send]); - { - /* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */ - } return navigate("..")} onConfirmUpdate={onConfirmUpdate} />; }