Merge branch 'fe/fix/label-save' into 'fe/develop'
Fix: 레이블 저장 실패 문제 수정 See merge request s11-s-project/S11P21S002!229
This commit is contained in:
commit
9dedbd6599
@ -138,7 +138,7 @@ export default function ImageCanvas() {
|
|||||||
const id = labels.length;
|
const id = labels.length;
|
||||||
addLabel({
|
addLabel({
|
||||||
id: id,
|
id: id,
|
||||||
categoryId: 0,
|
categoryId: categories[0]!.id,
|
||||||
type: 'polygon',
|
type: 'polygon',
|
||||||
color: `#${color}`,
|
color: `#${color}`,
|
||||||
coordinates: polygonPoints.slice(0, -1),
|
coordinates: polygonPoints.slice(0, -1),
|
||||||
@ -165,7 +165,7 @@ export default function ImageCanvas() {
|
|||||||
const id = labels.length;
|
const id = labels.length;
|
||||||
addLabel({
|
addLabel({
|
||||||
id: id,
|
id: id,
|
||||||
categoryId: 0,
|
categoryId: categories[0]!.id,
|
||||||
type: 'rectangle',
|
type: 'rectangle',
|
||||||
color: `#${color}`,
|
color: `#${color}`,
|
||||||
coordinates: rectPoints,
|
coordinates: rectPoints,
|
||||||
|
Loading…
Reference in New Issue
Block a user