From dccfc3b84f306bcfb38bf7110cb112d8b02b9a09 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 11 Mar 2022 07:43:38 -0600 Subject: [PATCH] fix camera list on debug page --- web/.eslintrc | 2 +- web/src/routes/Debug.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/.eslintrc b/web/.eslintrc index cf638d350..a38413915 100644 --- a/web/.eslintrc +++ b/web/.eslintrc @@ -15,7 +15,7 @@ "rules": { "indent": ["error", 2, { "SwitchCase": 1 }], "comma-dangle": ["error", { "objects": "always-multiline", "arrays": "always-multiline" }], - "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], + "no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }], "no-console": "error" }, "overrides": [ diff --git a/web/src/routes/Debug.jsx b/web/src/routes/Debug.jsx index 5b593cc57..0cc3e3e1e 100644 --- a/web/src/routes/Debug.jsx +++ b/web/src/routes/Debug.jsx @@ -18,7 +18,7 @@ export default function Debug() { } = useMqtt('stats'); const { data: initialStats } = useSWR('stats'); - const { detectors, service = {}, ...cameras } = stats || initialStats || emptyObject; + const { detectors, service = {}, detection_fps: _, ...cameras } = stats || initialStats || emptyObject; const detectorNames = Object.keys(detectors || emptyObject); const detectorDataKeys = Object.keys(detectors ? detectors[detectorNames[0]] : emptyObject);