mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 18:59:01 +03:00
Avoid unknown class for cover image
This commit is contained in:
@@ -266,7 +266,10 @@ function ModelCard({ config, onClick, onUpdate, onDelete }: ModelCardProps) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const keys = Object.keys(dataset.categories).filter((key) => key != "none");
|
||||
const keys = Object.keys(dataset.categories).filter(
|
||||
(key) => key != "none" && key.toLowerCase() != "unknown",
|
||||
);
|
||||
|
||||
if (keys.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user