mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-13 00:26:42 +03:00
Adjustments
This commit is contained in:
parent
58a8ea5ef8
commit
c2e83a0937
@ -225,7 +225,9 @@ export function GroupedClassificationCard({
|
|||||||
return {
|
return {
|
||||||
...bestTyped,
|
...bestTyped,
|
||||||
name: event
|
name: event
|
||||||
? (event.sub_label ?? t(noClassificationLabel))
|
? event.sub_label && event.sub_label !== "none"
|
||||||
|
? event.sub_label
|
||||||
|
: t(noClassificationLabel)
|
||||||
: bestTyped.name,
|
: bestTyped.name,
|
||||||
score: event?.data?.sub_label_score || bestTyped.score,
|
score: event?.data?.sub_label_score || bestTyped.score,
|
||||||
};
|
};
|
||||||
@ -315,10 +317,10 @@ export function GroupedClassificationCard({
|
|||||||
isMobile && "px-2",
|
isMobile && "px-2",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{event?.sub_label
|
{event?.sub_label && event.sub_label !== "none"
|
||||||
? event.sub_label
|
? event.sub_label
|
||||||
: t(noClassificationLabel)}
|
: t(noClassificationLabel)}
|
||||||
{event?.sub_label && (
|
{event?.sub_label && event.sub_label !== "none" && (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"",
|
"",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user