Skip to content

Commit

Permalink
Fix crash when consecutive underscores are used in camera name (#15257)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Nov 30, 2024
1 parent 2207a91 commit d25ffdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/pages/Live.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit d25ffdb

Please sign in to comment.