mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-03-04 00:17:22 +01:00
Check websocket correctly when no cameras are enabled/defined (#16762)
This commit is contained in:
parent
22cbf74dc8
commit
202b9d1c79
@ -46,7 +46,7 @@ function useValue(): useValueReturn {
|
||||
|
||||
const cameraActivity: { [key: string]: object } = JSON.parse(activityValue);
|
||||
|
||||
if (!cameraActivity) {
|
||||
if (Object.keys(cameraActivity).length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user