From ef6952e3ea484f547120063518dd8ac9cf477198 Mon Sep 17 00:00:00 2001
From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
Date: Sat, 11 Jan 2025 15:23:52 -0600
Subject: [PATCH] Fix display of save button in tracked object details pane
(#15946)
---
.../overlay/detail/SearchDetailDialog.tsx | 20 +++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx
index bf4b70947..2ead377a5 100644
--- a/web/src/components/overlay/detail/SearchDetailDialog.tsx
+++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx
@@ -543,16 +543,16 @@ function ObjectDetailsTab({
)}
)}
- {(config?.cameras[search.camera].genai.enabled && search.end_time) ||
- (!config?.cameras[search.camera].genai.enabled && (
-
- ))}
+ {((config?.cameras[search.camera].genai.enabled && search.end_time) ||
+ !config?.cameras[search.camera].genai.enabled) && (
+
+ )}