mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 23:55:25 +03:00
use correct score on search thumbnail
This commit is contained in:
parent
b046783364
commit
5f4381ebf8
@ -90,8 +90,9 @@ export default function SearchThumbnail({
|
||||
onClick={() => onClick(searchResult)}
|
||||
>
|
||||
{getIconForLabel(objectLabel, "size-3 text-white")}
|
||||
{Math.floor(
|
||||
searchResult.score ?? searchResult.data.top_score * 100,
|
||||
{Math.round(
|
||||
(searchResult.data.score ?? searchResult.data.top_score) *
|
||||
100,
|
||||
)}
|
||||
%
|
||||
</Chip>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user