Fix delete chip error #31

Merged
jgeorgi merged 1 commits from xps-delete-fix into main 2023-12-05 19:05:51 +00:00

View File

@@ -325,7 +325,9 @@
deleteChip ( iChip ) { 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?`, () => { 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.resultData.detections.splice(iChip, 1)
this.selectChip = -1 this.selectedChip = -1
const box = this.$refs.structure_box
box.style.display = 'none'
}); });
}, },
getImage () { getImage () {