UI changes (#11863)

* Delay live ready being dropped

* Handle case of removed camera
This commit is contained in:
Nicolas Mowen
2024-06-10 20:20:58 -05:00
committed by GitHub
parent 18d561da0e
commit 962d213699
2 changed files with 6 additions and 5 deletions

View File

@@ -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;