mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
Avoid unknown class for cover image
This commit is contained in:
parent
82410f8278
commit
4b034644d2
@ -266,7 +266,10 @@ function ModelCard({ config, onClick, onUpdate, onDelete }: ModelCardProps) {
|
|||||||
return undefined;
|
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) {
|
if (keys.length === 0) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user