mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
ensure we bail in the live mode hook for empty camera groups
prevent infinite rendering on camera groups with no cameras
This commit is contained in:
parent
fb3bb380fd
commit
3bcca216e1
@ -54,7 +54,7 @@ export default function useCameraLiveMode(
|
||||
}>({});
|
||||
|
||||
useEffect(() => {
|
||||
if (!cameras) return;
|
||||
if (!cameras || cameras.length === 0) return;
|
||||
|
||||
const mseSupported =
|
||||
"MediaSource" in window || "ManagedMediaSource" in window;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user