Skip to content

Commit f7c1a70

Browse files
authored
update(image-annotator-react): update types
1 parent 7f38d59 commit f7c1a70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/image-annotator-react/src/AttributePanel/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export function AttributePanel() {
313313
});
314314
}
315315

316-
if (config?.line || config?.point || config?.polygon || config?.rect || config?.cuboid) {
316+
if (config?.line || config?.point || config?.polygon || config?.rect || config?.cuboid || config?.relation) {
317317
_titles.push({
318318
title: t('labels'),
319319
key: 'label' as const,
@@ -333,6 +333,7 @@ export function AttributePanel() {
333333
config?.polygon,
334334
config?.rect,
335335
config?.cuboid,
336+
config?.relation,
336337
globalAnnotations,
337338
sortedImageAnnotations.length,
338339
]);

packages/image-annotator-react/src/ImageAnnotator.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import type {
1616
ToolName,
1717
Annotator as ImageAnnotatorClass,
1818
AnnotationToolData,
19-
RelationData,
2019
EditType,
2120
} from '@labelu/image';
2221
import cloneDeep from 'lodash.clonedeep';

0 commit comments

Comments
 (0)