From 63b0dc52780c3519c847875fa0aadb26066e113e Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 16 Feb 2022 12:09:27 -0700 Subject: [PATCH] Support default sort correctly --- web/src/routes/Cameras.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes/Cameras.jsx b/web/src/routes/Cameras.jsx index ec2965f7c..8e784716f 100644 --- a/web/src/routes/Cameras.jsx +++ b/web/src/routes/Cameras.jsx @@ -16,7 +16,7 @@ export default function Cameras() { ) : (
- {Object.entries(config.cameras).sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order > bConf.gui.order ? 1 : -1).map(([camera, conf]) => ( + {Object.entries(config.cameras).sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order == bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)).map(([camera, conf]) => ( ))}