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) && (
+
+ )}