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

This commit is contained in:
Josh Hawkins authored and GitHub committed 2025-02-23 11:11:18 -07:00
1 parent 22cbf74dc8
commit 202b9d1c79
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ function useValue(): useValueReturn {
const cameraActivity: { [key: string]: object } = JSON.parse(activityValue);
if (!cameraActivity) {
if (Object.keys(cameraActivity).length === 0) {
return;
}