diff --git a/frigate/api/review.py b/frigate/api/review.py
index 977a0aa94..b90365595 100644
--- a/frigate/api/review.py
+++ b/frigate/api/review.py
@@ -58,13 +58,9 @@ async def review(
)
clauses = [
- (
- (ReviewSegment.start_time > after)
- & (
- (ReviewSegment.end_time.is_null(True))
- | (ReviewSegment.end_time < before)
- )
- )
+ (ReviewSegment.start_time > after)
+ & (ReviewSegment.start_time < before)
+ & ((ReviewSegment.end_time.is_null(True)) | (ReviewSegment.end_time < before))
]
if cameras != "all":
diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx
index 9b913ed53..8cbddf63a 100644
--- a/web/src/components/overlay/detail/SearchDetailDialog.tsx
+++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx
@@ -792,7 +792,7 @@ function ObjectDetailsTab({
{topScore}%{subLabelScore && ` (${subLabelScore}%)`}
- {snapScore && (
+ {snapScore != undefined && (
diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx
index a0d904d35..4ce7fcad4 100644
--- a/web/src/views/events/EventView.tsx
+++ b/web/src/views/events/EventView.tsx
@@ -279,32 +279,29 @@ export default function EventView({
value="alert"
aria-label={t("alerts")}
>
- {isMobileOnly ? (
-
+
+ {reviewCounts.alert > -1 ? (
+ reviewCounts.alert
+ ) : (
+
+ )}
+
+
+
+
+ {t("alerts")}
{reviewCounts.alert > -1 ? (
- reviewCounts.alert
+ ` ∙ ${reviewCounts.alert}`
) : (
-
+
)}
- ) : (
- <>
-
-
- {t("alerts")}
- {reviewCounts.alert > -1 ? (
- ` ∙ ${reviewCounts.alert}`
- ) : (
-
- )}
-
- >
- )}
+
- {isMobileOnly ? (
-
+
+ {reviewCounts.detection > -1 ? (
+ reviewCounts.detection
+ ) : (
+
+ )}
+
+
+
+
+ {t("detections")}
{reviewCounts.detection > -1 ? (
- reviewCounts.detection
+ ` ∙ ${reviewCounts.detection}`
) : (
-
+
)}
- ) : (
- <>
-
-
- {t("detections")}
- {reviewCounts.detection > -1 ? (
- ` ∙ ${reviewCounts.detection}`
- ) : (
-
- )}
-
- >
- )}
+
- {isMobileOnly ? (
-
- ) : (
- <>
-
- {t("motion.label")}
- >
- )}
+
+
+
+
{t("motion.label")}
+