From 8f9dc72c51a1ad1dabd093da637840bfd6296616 Mon Sep 17 00:00:00 2001 From: Kirill Lakhov Date: Fri, 3 May 2024 12:44:00 +0300 Subject: [PATCH] small fix --- .../tag-annotation-workspace/frame-tags.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cvat-ui/src/components/annotation-page/tag-annotation-workspace/frame-tags.tsx b/cvat-ui/src/components/annotation-page/tag-annotation-workspace/frame-tags.tsx index 7a434c7fc93e..145ec6c1c9b5 100644 --- a/cvat-ui/src/components/annotation-page/tag-annotation-workspace/frame-tags.tsx +++ b/cvat-ui/src/components/annotation-page/tag-annotation-workspace/frame-tags.tsx @@ -14,9 +14,13 @@ import { removeObject as removeObjectAction, } from 'actions/annotation-actions'; import { CombinedState, ObjectType, Workspace } from 'reducers'; -import { QualityConflict, ObjectState, AnnotationConflict } from 'cvat-core-wrapper'; +import { + QualityConflict, ObjectState, AnnotationConflict, getCore, +} from 'cvat-core-wrapper'; import { filterAnnotations } from 'utils/filter-annotations'; +const core = getCore(); + interface StateToProps { highlightedConflict: QualityConflict | null; states: ObjectState[]; @@ -67,7 +71,7 @@ function FrameTags(props: StateToProps & DispatchToProps): JSX.Element { <>
{frameTags - .filter((tag: any) => tag.source !== 'Ground truth') + .filter((tag: any) => tag.source !== core.enums.Source.GT) .map((tag: any) => (
{frameTags - .filter((tag: any) => tag.source === 'Ground truth') + .filter((tag: any) => tag.source === core.enums.Source.GT) .map((tag: any) => ( {tag.label.name} {' '}