fix bug
This commit is contained in:
parent
f12c1d569a
commit
758c816fa9
|
@ -11,9 +11,9 @@ export function ObjectLabelList(props: { file: EnteFile }) {
|
||||||
const things = await mlIDbStorage.getAllThingsMap();
|
const things = await mlIDbStorage.getAllThingsMap();
|
||||||
const uniqueObjectNames = [
|
const uniqueObjectNames = [
|
||||||
...new Set(
|
...new Set(
|
||||||
things
|
(things.get(props.file.id) ?? []).map(
|
||||||
.get(props.file.id)
|
(object) => object.detection.class
|
||||||
.map((object) => object.detection.class)
|
)
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
!didCancel && setObjects(uniqueObjectNames);
|
!didCancel && setObjects(uniqueObjectNames);
|
||||||
|
|
Loading…
Reference in a new issue