diff --git a/web/src/routes/Birdseye.jsx b/web/src/routes/Birdseye.jsx index c23713bb9..c2742e14b 100644 --- a/web/src/routes/Birdseye.jsx +++ b/web/src/routes/Birdseye.jsx @@ -24,7 +24,7 @@ export default function Birdseye() { } return Object.entries(config.cameras) - .filter(([_, conf]) => conf.onvif?.host) + .filter(([_, conf]) => conf.onvif?.host && conf.onvif.host != '') .map(([_, camera]) => camera.name); }, [config]); @@ -37,7 +37,7 @@ export default function Birdseye() { if ('MediaSource' in window) { player = ( -
+
@@ -54,7 +54,7 @@ export default function Birdseye() { } else if (viewSource == 'webrtc' && config.birdseye.restream) { player = ( -
+
@@ -62,7 +62,7 @@ export default function Birdseye() { } else { player = ( -
+
@@ -94,7 +94,7 @@ export default function Birdseye() {
{player} - {ptzCameras && ( + {ptzCameras.length ? (
Control Panel {ptzCameras.map((camera) => ( @@ -104,7 +104,7 @@ export default function Birdseye() {
))}
- )} + ) : null}
);