Fix birdseye options

This commit is contained in:
Nicolas Mowen 2024-01-31 06:38:27 -07:00
parent 89093b4190
commit cb73e09f53

View File

@ -37,8 +37,15 @@ function Live() {
);
}, [config]);
const restreamEnabled = useMemo(() => {
if (!config) {
return false;
}
if (camera == "birdseye") {
return config.birdseye.restream;
}
return (
config &&
cameraConfig &&
Object.keys(config.go2rtc.streams || {}).includes(
cameraConfig.live.stream_name