Skip to content

NVR with realtime local object detection for IP cameras

Check websocket correctly when no cameras are enabled/defined (#16762)

Josh Hawkins202b9d1c7994
diff --git a/web/src/api/ws.tsx b/web/src/api/ws.tsx
index a8cedf9534..7ca9ae69d2 100644
--- a/web/src/api/ws.tsx
+++ b/web/src/api/ws.tsx
@@ -46,7 +46,7 @@ function useValue(): useValueReturn {
const cameraActivity: { [key: string]: object } = JSON.parse(activityValue);
- if (!cameraActivity) {
+ if (Object.keys(cameraActivity).length === 0) {
return;
}