From c4c50a60c4fce59fccda8dafa22fdd703e387a22 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Fri, 27 Sep 2024 17:14:04 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=A0=88=EC=9D=B4=EB=B8=94=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EC=8B=A4=ED=8C=A8=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/ImageCanvas/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/ImageCanvas/index.tsx b/frontend/src/components/ImageCanvas/index.tsx index e829edd..f863465 100644 --- a/frontend/src/components/ImageCanvas/index.tsx +++ b/frontend/src/components/ImageCanvas/index.tsx @@ -138,7 +138,7 @@ export default function ImageCanvas() { const id = labels.length; addLabel({ id: id, - categoryId: 0, + categoryId: categories[0]!.id, type: 'polygon', color: `#${color}`, coordinates: polygonPoints.slice(0, -1), @@ -165,7 +165,7 @@ export default function ImageCanvas() { const id = labels.length; addLabel({ id: id, - categoryId: 0, + categoryId: categories[0]!.id, type: 'rectangle', color: `#${color}`, coordinates: rectPoints,