NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Refactor code in Events.jsx to conditionally render event zones in the event card view (#7120)
Sergey Krashevich20415bb5e0fe
diff --git a/web/src/routes/Events.jsx b/web/src/routes/Events.jsxindex 7d04d3bc43..0bfd0eb06c 100644--- a/web/src/routes/Events.jsx+++ b/web/src/routes/Events.jsx@@ -622,10 +622,10 @@ export default function Events({ path, ...props }) {<Camera className="h-5 w-5 mr-2 inline" />{event.camera.replaceAll('_', ' ')}</div>- <div className="capitalize text-sm flex align-center">+ {event.zones.length ? <div className="capitalize text-sm flex align-center"><Zone className="w-5 h-5 mr-2 inline" />{event.zones.join(', ').replaceAll('_', ' ')}- </div>+ </div> : null}<div className="capitalize text-sm flex align-center"><Score className="w-5 h-5 mr-2 inline" />{(event?.data?.top_score || event.top_score || 0) == 0