mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Catch blank sub labels too
This commit is contained in:
parent
4130fcaf6b
commit
a6ddc71652
@ -122,7 +122,7 @@ export default function Events({ path, ...props }) {
|
|||||||
return memo;
|
return memo;
|
||||||
}, config?.objects?.track || [])
|
}, config?.objects?.track || [])
|
||||||
.filter((value, i, self) => self.indexOf(value) === i),
|
.filter((value, i, self) => self.indexOf(value) === i),
|
||||||
sub_labels: Object.values(allSubLabels || []),
|
sub_labels: (allSubLabels || []).length > 0 ? [...Object.values(allSubLabels), "None"] : [],
|
||||||
}),
|
}),
|
||||||
[config, allSubLabels]
|
[config, allSubLabels]
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user