mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-28 23:06:13 +02:00
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:
@@ -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)}`;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user