diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx
index 6f51a5397..fdabed335 100644
--- a/web/src/routes/System.jsx
+++ b/web/src/routes/System.jsx
@@ -246,11 +246,14 @@ export default function System() {
Detect |
{cameras[camera]['pid'] || '- '} |
- {cameras[camera]['detection_enabled'] == 1 ? (
- {cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped) |
- ) : (
- disabled |
- )}
+ {(() => {
+ if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 1)
+ return {cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped) |
+ else if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 0)
+ return disabled |
+
+ return - |
+ })()}
{cpu_usages[cameras[camera]['pid']]?.['cpu'] || '- '}% |
{cpu_usages[cameras[camera]['pid']]?.['mem'] || '- '}% |