diff --git a/web/src/components/card/AnimatedEventCard.tsx b/web/src/components/card/AnimatedEventCard.tsx index acacf4707..150613967 100644 --- a/web/src/components/card/AnimatedEventCard.tsx +++ b/web/src/components/card/AnimatedEventCard.tsx @@ -74,8 +74,8 @@ export function AnimatedEventCard({ // image behavior const aspectRatio = useMemo(() => { - if (!config) { - return 1; + if (!config || !Object.keys(config.cameras).includes(event.camera)) { + return 16 / 9; } const detect = config.cameras[event.camera].detect;