mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
Quick fix (#16926)
* fix * Fix * Fix incorrect default websocket value * Cleanup value setting
This commit is contained in:
@@ -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