Skip to content

NVR with realtime local object detection for IP cameras

Fix crash when consecutive underscores are used in camera name (#15257)

Josh Hawkinsd25ffdb29276
diff --git a/web/src/pages/Live.tsx b/web/src/pages/Live.tsx
index e19dccd07d..97e565ef14 100644
--- a/web/src/pages/Live.tsx
+++ b/web/src/pages/Live.tsx
@@ -62,6 +62,7 @@ function Live() {
if (selectedCameraName) {
const capitalized = selectedCameraName
.split("_")
+ .filter((text) => text)
.map((text) => text[0].toUpperCase() + text.substring(1));
document.title = `${capitalized.join(" ")} - Live - Frigate`;
} else if (cameraGroup && cameraGroup != "default") {