diff --git a/web/src/Sidebar.jsx b/web/src/Sidebar.jsx index c16250e51..39b988e98 100644 --- a/web/src/Sidebar.jsx +++ b/web/src/Sidebar.jsx @@ -22,9 +22,9 @@ export default function Sidebar() { {Object.entries(cameras) - .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]) => ( + .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]) => ( ))} @@ -39,7 +39,7 @@ export default function Sidebar() { {Object.entries(cameras) .filter(([_, conf]) => conf.gui.show) - .sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)) + .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 ( diff --git a/web/src/routes/Cameras.jsx b/web/src/routes/Cameras.jsx index d6b25fb16..da98d043b 100644 --- a/web/src/routes/Cameras.jsx +++ b/web/src/routes/Cameras.jsx @@ -18,7 +18,7 @@ export default function Cameras() {
{Object.entries(config.cameras) .filter(([_, conf]) => conf.gui.show) - .sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)) + .sort(([_, aConf], [__, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)) .map(([camera, conf]) => ( ))}