From d75a5eb7ee8b962c5d2e118a95155816877a55e4 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Tue, 28 Oct 2025 10:48:13 +0100 Subject: [PATCH] refactor: stale display settings --- ui/src/routes/devices.$id.settings.hardware.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/routes/devices.$id.settings.hardware.tsx b/ui/src/routes/devices.$id.settings.hardware.tsx index 75b941d6..42776414 100644 --- a/ui/src/routes/devices.$id.settings.hardware.tsx +++ b/ui/src/routes/devices.$id.settings.hardware.tsx @@ -46,10 +46,10 @@ export default function SettingsHardwareRoute() { } setBacklightSettings(settings); - handleBacklightSettingsSave(); + handleBacklightSettingsSave(settings); }; - const handleBacklightSettingsSave = () => { + const handleBacklightSettingsSave = (backlightSettings: BacklightSettings) => { send("setBacklightSettings", { params: backlightSettings }, (resp: JsonRpcResponse) => { if ("error" in resp) { notifications.error( @@ -81,7 +81,7 @@ export default function SettingsHardwareRoute() { const duration = enabled ? 90 : -1; send("setVideoSleepMode", { duration }, (resp: JsonRpcResponse) => { if ("error" in resp) { - notifications.error(m.hardware_power_saving_failed_error({ error: resp.error.data ||m.unknown_error() })); + notifications.error(m.hardware_power_saving_failed_error({ error: resp.error.data || m.unknown_error() })); setPowerSavingEnabled(!enabled); // Attempt to revert on error return; }