diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx index 6e80725cf..457f7c400 100644 --- a/web/src/Sidebar.jsx +++ b/web/src/Sidebar.jsx @@ -21,7 +21,7 @@ export default function Sidebar() { matches ? ( - {Object.entries(cameras).map(([camera]) => ( + {Object.keys(cameras).map((camera) => ( ))} @@ -34,18 +34,14 @@ export default function Sidebar() { matches ? ( - {Object.entries(cameras).map(([camera, conf]) => { - if (conf.record.enabled) { - return ( - - ); - } - return null; - })} + {Object.keys(cameras).map((camera) => ( + + ))} ) : null