From 78e45359db17c2370bd3484e964b0855ac83b7ee Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:59:38 -0500 Subject: [PATCH] Fix sub_label score in search detail dialog --- 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 e35abcf77b..1bb8871816 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -296,7 +296,7 @@ function ObjectDetailsTab({ } if (search.sub_label) { - return Math.round((search.data?.top_score ?? 0) * 100); + return Math.round((search.data?.sub_label_score ?? 0) * 100); } else { return undefined; }