only display sublabel score if it it exists

This commit is contained in:
Josh Hawkins 2024-11-18 12:15:04 -06:00
parent ca909a32b2
commit 323aca8b79

View File

@ -309,7 +309,7 @@ function ObjectDetailsTab({
return undefined; return undefined;
} }
if (search.sub_label) { if (search.sub_label && search.data?.sub_label_score) {
return Math.round((search.data?.sub_label_score ?? 0) * 100); return Math.round((search.data?.sub_label_score ?? 0) * 100);
} else { } else {
return undefined; return undefined;