mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 00:25:23 +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)}
|
onClick={() => onClick(searchResult)}
|
||||||
>
|
>
|
||||||
{getIconForLabel(objectLabel, "size-3 text-white")}
|
{getIconForLabel(objectLabel, "size-3 text-white")}
|
||||||
{Math.floor(
|
{Math.round(
|
||||||
searchResult.score ?? searchResult.data.top_score * 100,
|
(searchResult.data.score ?? searchResult.data.top_score) *
|
||||||
|
100,
|
||||||
)}
|
)}
|
||||||
%
|
%
|
||||||
</Chip>
|
</Chip>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user