From 4ed00f22c544adf4b4d164ae4d00fceffcdb3fa8 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 16 Apr 2025 15:13:54 -0600 Subject: [PATCH] Fix random 0 --- web/src/components/overlay/detail/SearchDetailDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index e0f9e0577..72cb0f826 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -366,7 +366,7 @@ function ObjectDetailsTab({ const snapScore = useMemo(() => { if (!search?.has_snapshot) { - return 0; + return undefined; } const value = search.data.score ?? search.score ?? 0;