Quick fixes (#17278)

* Fix check

* Fix default loading state
This commit is contained in:
Nicolas Mowen
2025-03-20 14:09:57 -06:00
committed by GitHub
parent e396043f79
commit 060659044e
2 changed files with 4 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ export function useCameraActivity(
return cameras[camera.name].camera_fps == 0 && stats["service"].uptime > 60;
}, [camera, stats]);
const isCameraEnabled = cameraEnabled ? cameraEnabled === "ON" : undefined;
const isCameraEnabled = cameraEnabled ? cameraEnabled === "ON" : true;
return {
enabled: isCameraEnabled,