fix camera list on debug page

This commit is contained in:
Blake Blackshear 2022-03-11 07:43:38 -06:00
parent deb3536cb2
commit dccfc3b84f
2 changed files with 2 additions and 2 deletions

View File

@ -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": [

View File

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