mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-16 16:15:22 +03:00
revert sublabel score calc
This commit is contained in:
parent
6cc5da43ec
commit
64168e1123
@ -296,7 +296,7 @@ function ObjectDetailsTab({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (search.sub_label) {
|
if (search.sub_label) {
|
||||||
return Math.round(search.data.top_score * 100);
|
return Math.round((search.data?.top_score ?? 0) * 100);
|
||||||
} else {
|
} else {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user