Miscellaneous Fixes (#21193)

* Fix saving zone friendly name when it wasn't set

* Fix UTF-8 handling for Onvif

* Don't remove none directory for classes

* Lookup all event IDs for review item immediately

* Cleanup typing

* Only fetch events when review group is open

* Cleanup

* disable debug paths switch for autotracking cameras

* fix clickable birdseye

---------

Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
Nicolas Mowen
2025-12-09 11:08:44 -07:00
committed by GitHub
parent dfd837cfb0
commit 4cf4520ea7
8 changed files with 62 additions and 21 deletions

View File

@@ -441,7 +441,7 @@ export default function ZoneEditPane({
}
let friendlyNameQuery = "";
if (friendly_name) {
if (friendly_name && friendly_name !== zoneName) {
friendlyNameQuery = `&cameras.${polygon?.camera}.zones.${zoneName}.friendly_name=${encodeURIComponent(friendly_name)}`;
}

View File

@@ -316,7 +316,7 @@ function ReviewGroup({
date_style: "medium",
});
const shouldFetchEvents = review?.data?.detections?.length > 0;
const shouldFetchEvents = open && review?.data?.detections?.length > 0;
const { data: fetchedEvents, isValidating } = useSWR<Event[]>(
shouldFetchEvents