diff --git a/web/src/routes/Cameras.jsx b/web/src/routes/Cameras.jsx index 4f865e20b..d6b25fb16 100644 --- a/web/src/routes/Cameras.jsx +++ b/web/src/routes/Cameras.jsx @@ -17,11 +17,11 @@ export default function Cameras() { ) : (
{Object.entries(config.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]) => ( - - ))} + .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]) => ( + + ))}
); }