mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Check keys
This commit is contained in:
parent
975b0a4ff1
commit
5050f35516
@ -23,7 +23,7 @@ export default function Camera({ camera }) {
|
||||
const apiHost = useApiHost();
|
||||
const [showSettings, setShowSettings] = useState(false);
|
||||
const [viewMode, setViewMode] = useState('live');
|
||||
const restreamEnabled = config?.restream && Object.keys(config.restream).includes(camera);
|
||||
const restreamEnabled = config?.restream?.streams && Object.keys(config.restream.streams).includes(camera);
|
||||
|
||||
const cameraConfig = config?.cameras[camera];
|
||||
const jsmpegWidth = cameraConfig
|
||||
|
||||
Loading…
Reference in New Issue
Block a user