Skip to content

NVR with realtime local object detection for IP cameras

Fix score in search details dialog for old events (#14541)

Josh Hawkins8fefded8dcad
diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx
index f443c9d443..78796036fd 100644
--- a/web/src/components/overlay/detail/SearchDetailDialog.tsx
+++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx
@@ -287,7 +287,7 @@ function ObjectDetailsTab({
return 0;
}
- const value = search.data.top_score;
+ const value = search.data.top_score ?? search.top_score ?? 0;
return Math.round(value * 100);
}, [search]);