mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 14:15:22 +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
|
||||
|
||||
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user