revert sublabel score calc

This commit is contained in:
Josh Hawkins 2024-10-16 19:30:21 -05:00
parent 6cc5da43ec
commit 64168e1123

View File

@ -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;
}