diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx
index 4ece2f802..c16250e51 100644
--- a/web/src/Sidebar.jsx
+++ b/web/src/Sidebar.jsx
@@ -22,11 +22,11 @@ export default function Sidebar() {
{Object.entries(cameras)
- .filter(([cam, conf]) => conf.gui.show)
- .sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
- .map(([camera]) => (
-
- ))}
+ .filter(([_, conf]) => conf.gui.show)
+ .sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
+ .map(([camera]) => (
+
+ ))}
) : null
@@ -38,21 +38,21 @@ export default function Sidebar() {
{Object.entries(cameras)
- .filter(([cam, conf]) => conf.gui.show)
- .sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
- .map(([camera, conf]) => {
- if (conf.record.enabled) {
- return (
-
- );
- }
- return null;
- })}
+ .filter(([_, conf]) => conf.gui.show)
+ .sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
+ .map(([camera, conf]) => {
+ if (conf.record.enabled) {
+ return (
+
+ );
+ }
+ return null;
+ })}
) : null