mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 15:23:20 +00:00
Quick fix (#16926)
* fix * Fix * Fix incorrect default websocket value * Cleanup value setting
This commit is contained in:
1 parent
2946c935ee
commit
56079d080d
4 files changed
+12
-11
No files matched your search
+1
-1
@@ -174,7 +174,7 @@ export function useEnabledState(camera: string): {
|
||||
value: { payload },
|
||||
send,
|
||||
} = useWs(`${camera}/enabled/state`, `${camera}/enabled/set`);
|
||||
return { payload: payload as ToggleableSetting, send };
|
||||
return { payload: (payload ?? "ON") as ToggleableSetting, send };
|
||||
}
|
||||
|
||||
export function useDetectState(camera: string): {
|
||||
|
||||
Reference in new issue
Block a user