mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 02:35:22 +03:00
Refactor filter logic to exclude cameras with empty onvif host address
This commit is contained in:
parent
b38c9e82e2
commit
ae40db7720
@ -24,7 +24,7 @@ export default function Birdseye() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return Object.entries(config.cameras)
|
return Object.entries(config.cameras)
|
||||||
.filter(([_, conf]) => conf.onvif?.host)
|
.filter(([_, conf]) => conf.onvif?.host && conf.onvif?.host !== '')
|
||||||
.map(([_, camera]) => camera.name);
|
.map(([_, camera]) => camera.name);
|
||||||
}, [config]);
|
}, [config]);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user