Fix: 레이블 저장 실패 문제 수정

This commit is contained in:
jhynsoo 2024-09-27 17:14:04 +09:00
parent b65590002a
commit c4c50a60c4

View File

@ -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,