From 4984f2bf5a63f6266244fa9f176fe5962d9f754f Mon Sep 17 00:00:00 2001 From: Takhyun Kim Date: Thu, 12 Oct 2023 16:28:48 +0900 Subject: [PATCH] feat(viewer): apply data attribute to AnnotationViewer --- libs/annotation/src/components/AnnotationViewer/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/annotation/src/components/AnnotationViewer/index.tsx b/libs/annotation/src/components/AnnotationViewer/index.tsx index 5d200d35d..e73f20f7d 100644 --- a/libs/annotation/src/components/AnnotationViewer/index.tsx +++ b/libs/annotation/src/components/AnnotationViewer/index.tsx @@ -72,7 +72,7 @@ export function AnnotationViewer({ if (!drawableAnnotation) return null - const { type } = drawableAnnotation + const { type, dataAttrs } = drawableAnnotation return ( {type === 'polygon' && } {(type === 'freeLine' || type === 'line' || type === 'arrowLine') && (