mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-09 16:47:37 +03:00
Fix classification assignment classes lookup in detail dialog
This commit is contained in:
parent
ae6d6ce2e5
commit
86f82c6e0a
@ -1595,7 +1595,8 @@ function ObjectDetailsTab({
|
||||
const model = config?.classification?.custom?.[modelName];
|
||||
if (!model) return null;
|
||||
|
||||
const classes = Object.keys(modelAttributes?.[modelName] ?? {});
|
||||
const displayName = model.name || modelName;
|
||||
const classes = modelAttributes?.[displayName] ?? [];
|
||||
if (classes.length === 0) return null;
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user