From d0fb3bbec68919f4c9cdc630bf14343b2d839496 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 9 Nov 2022 15:19:16 -0700 Subject: [PATCH] Fix lint errors --- web/src/routes/Debug.jsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/web/src/routes/Debug.jsx b/web/src/routes/Debug.jsx index 8d95b0cd4..3f77b0be6 100644 --- a/web/src/routes/Debug.jsx +++ b/web/src/routes/Debug.jsx @@ -24,7 +24,6 @@ export default function Debug() { const detectorNames = Object.keys(detectors || emptyObject); const detectorDataKeys = Object.keys(detectors ? detectors[detectorNames[0]] : emptyObject); const cameraNames = Object.keys(cameras || emptyObject); - const cameraDataKeys = Object.keys(cameras[cameraNames[0]] || emptyObject); const handleCopyConfig = useCallback(() => { async function copy() { @@ -59,9 +58,9 @@ export default function Debug() { Detectors
- {detectorNames.map((name) => ( -
-
{name}
+ {detectorNames.map((detector) => ( +
+
{detector}
@@ -86,8 +85,8 @@ export default function Debug() { Cameras
- {cameraNames.map((camera, i) => ( -
+ {cameraNames.map((camera) => ( +
{camera.replaceAll('_', ' ')}