Don't show sub labels in main label filter list (#16168)

This commit is contained in:
Nicolas Mowen
2025-01-27 08:07:49 -06:00
committed by GitHub
parent 5943fc1895
commit 99d27c154e
3 changed files with 5 additions and 1 deletions
@@ -61,7 +61,9 @@ export default function SearchFilterGroup({
}
const cameraConfig = config.cameras[camera];
cameraConfig.objects.track.forEach((label) => {
labels.add(label);
if (!config.model.all_attributes.includes(label)) {
labels.add(label);
}
});
if (cameraConfig.audio.enabled_in_config) {
+1
View File
@@ -343,6 +343,7 @@ export interface FrigateConfig {
width: number;
colormap: { [key: string]: [number, number, number] };
attributes_map: { [key: string]: [string] };
all_attributes: [string];
};
motion: Record<string, unknown> | null;