mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
only display sublabel score if it it exists
This commit is contained in:
parent
ca909a32b2
commit
323aca8b79
@ -309,7 +309,7 @@ function ObjectDetailsTab({
|
||||
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);
|
||||
} else {
|
||||
return undefined;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user