mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +03:00
Handle case of removed camera
This commit is contained in:
parent
398652672c
commit
b88ab85480
@ -74,8 +74,8 @@ export function AnimatedEventCard({
|
|||||||
// image behavior
|
// image behavior
|
||||||
|
|
||||||
const aspectRatio = useMemo(() => {
|
const aspectRatio = useMemo(() => {
|
||||||
if (!config) {
|
if (!config || !Object.keys(config.cameras).includes(event.camera)) {
|
||||||
return 1;
|
return 16 / 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
const detect = config.cameras[event.camera].detect;
|
const detect = config.cameras[event.camera].detect;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user