mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix camera list on debug page
This commit is contained in:
parent
deb3536cb2
commit
dccfc3b84f
@ -15,7 +15,7 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"indent": ["error", 2, { "SwitchCase": 1 }],
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
||||||
"comma-dangle": ["error", { "objects": "always-multiline", "arrays": "always-multiline" }],
|
"comma-dangle": ["error", { "objects": "always-multiline", "arrays": "always-multiline" }],
|
||||||
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
|
||||||
"no-console": "error"
|
"no-console": "error"
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
|
@ -18,7 +18,7 @@ export default function Debug() {
|
|||||||
} = useMqtt('stats');
|
} = useMqtt('stats');
|
||||||
const { data: initialStats } = useSWR('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 detectorNames = Object.keys(detectors || emptyObject);
|
||||||
const detectorDataKeys = Object.keys(detectors ? detectors[detectorNames[0]] : emptyObject);
|
const detectorDataKeys = Object.keys(detectors ? detectors[detectorNames[0]] : emptyObject);
|
||||||
|
Loading…
Reference in New Issue
Block a user