From 19b5e2504b0380243ac591265081091d1c1da71b Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 8 Jul 2022 14:41:09 +0900 Subject: [PATCH] Fix remove method --- frontend/pages/projects/_id/object-detection/index.vue | 2 +- frontend/pages/projects/_id/segmentation/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pages/projects/_id/object-detection/index.vue b/frontend/pages/projects/_id/object-detection/index.vue index e05d811e..4d390f66 100644 --- a/frontend/pages/projects/_id/object-detection/index.vue +++ b/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) }, diff --git a/frontend/pages/projects/_id/segmentation/index.vue b/frontend/pages/projects/_id/segmentation/index.vue index 5732ab70..b62174c8 100644 --- a/frontend/pages/projects/_id/segmentation/index.vue +++ b/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) },