Cleanup for new labels

This commit is contained in:
Nicolas Mowen 2024-03-29 09:16:15 -06:00
parent 457827cdb9
commit 286507dc17
3 changed files with 2 additions and 5 deletions

View File

@ -83,7 +83,7 @@ export function AnimatedEventCard({ event }: AnimatedEventCardProps) {
</div>
</TooltipTrigger>
<TooltipContent>
{`${[...event.data.objects, ...event.data.audio, ...(event.data.sub_labels || [])].join(", ")} detected`}
{`${[...event.data.objects, ...event.data.audio].join(", ").replaceAll("-verified", "")} detected`}
</TooltipContent>
</Tooltip>
);

View File

@ -77,9 +77,7 @@ export default function ReviewFilterGroup({
cameras.forEach((camera) => {
const cameraConfig = config.cameras[camera];
cameraConfig.objects.track.forEach((label) => {
if (!ATTRIBUTES.includes(label)) {
labels.add(label);
}
labels.add(label);
});
if (cameraConfig.audio.enabled_in_config) {

View File

@ -15,7 +15,6 @@ export type ReviewData = {
audio: string[];
detections: string[];
objects: string[];
sub_labels?: string[];
significant_motion_areas: number[];
zones: string[];
};