Add snapshot score to explore details (#17713)

* Add snapshot score to details

* Only show snapshot score if it has a snapshot
This commit is contained in:
Nicolas Mowen
2025-04-15 08:46:33 -06:00
committed by GitHub
parent 15fe79178b
commit 8803fd7fff
3 changed files with 26 additions and 3 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ export default function SearchThumbnail({
onClick={() => onClick(searchResult, false, true)}
>
{getIconForLabel(objectLabel, "size-3 text-white")}
{Math.round(
{Math.floor(
(searchResult.data.score ??
searchResult.data.top_score ??
searchResult.top_score) * 100,