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);