Browse Source

Fix remove method

pull/1899/head
Hironsan 2 years ago
parent
commit
19b5e2504b
2 changed files with 2 additions and 2 deletions
  1. 2
      frontend/pages/projects/_id/object-detection/index.vue
  2. 2
      frontend/pages/projects/_id/segmentation/index.vue

2
frontend/pages/projects/_id/object-detection/index.vue

@ -233,7 +233,7 @@ export default {
async remove(id) {
delete this.visibilities[id]
const bbox = this.annotations.find((a) => a.uuid === region.id)
const bbox = this.annotations.find((a) => a.uuid === id)
await this.$services.bbox.delete(this.projectId, this.image.id, bbox.id)
await this.list(this.image.id)
},

2
frontend/pages/projects/_id/segmentation/index.vue

@ -234,7 +234,7 @@ export default {
async remove(id) {
delete this.visibilities[id]
const segmentation = this.annotations.find((a) => a.uuid === region.id)
const segmentation = this.annotations.find((a) => a.uuid === id)
await this.$services.segmentation.delete(this.projectId, this.image.id, segmentation.id)
await this.list(this.image.id)
},

Loading…
Cancel
Save