From c8ee370a396a88cba058f771d2c4e7b7f4058da3 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Tue, 5 Dec 2023 12:04:18 -0700 Subject: [PATCH] Fix delete chip error Signed-off-by: Justin Georgi --- src/pages/detect.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 3605c1e..7bf9c99 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -325,7 +325,9 @@ deleteChip ( iChip ) { f7.dialog.confirm(`${this.resultData.detections[iChip].label} is identified with ${this.resultData.detections[iChip].confidence.toFixed(1)}% confidence. Are you sure you want to delete it?`, () => { this.resultData.detections.splice(iChip, 1) - this.selectChip = -1 + this.selectedChip = -1 + const box = this.$refs.structure_box + box.style.display = 'none' }); }, getImage () {