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

This commit is contained in:
Josh Hawkins 2025-02-23 12:11:18 -06:00 committed by GitHub
parent 22cbf74dc8
commit 202b9d1c79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}