From 64168e11230592a36cb2e7376a6437d6f1d82cda Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:30:21 -0500 Subject: [PATCH] revert sublabel score calc --- 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 8a328c327..fe150bd56 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 * 100); + return Math.round((search.data?.top_score ?? 0) * 100); } else { return undefined; }