From b8df419badcde5a137c76bf71be958ada4e5abb3 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Mon, 30 Aug 2021 18:21:20 +0200 Subject: [PATCH] hide birdseye nav if not enabled --- web/src/Sidebar.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx index cb97c8f05..2d684f1fe 100644 --- a/web/src/Sidebar.jsx +++ b/web/src/Sidebar.jsx @@ -10,6 +10,7 @@ import NavigationDrawer, { Destination, Separator } from './components/Navigatio export default function Sidebar() { const { data: config } = useConfig(); const cameras = useMemo(() => Object.entries(config.cameras), [config]); + const { birdseye } = config; return ( }> @@ -49,7 +50,7 @@ export default function Sidebar() { ) : null } - + {birdseye?.enabled ? : null}