From 162e275ef381b82668b2f8559d7a1c54f736abfe Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 10 Apr 2022 08:13:30 -0600 Subject: [PATCH] Always show camera recordings in sidebar regardless of state (#2846) --- web/src/Sidebar.jsx | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) 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