Skip to content

Commit 17b3b98

Browse files
committed
Delete annotation removes selected, closes #64
1 parent fb85136 commit 17b3b98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client/src/components/annotator/Category.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,8 @@ export default {
279279
}
280280
},
281281
annotationDeleted(index) {
282-
if (this.selectedAnnotation == index) {
283-
if (index === this.category.annotations.length) {
284-
this.selectedAnnotation--;
285-
}
282+
if (this.selectedAnnotation >= index) {
283+
this.selectedAnnotation--;
286284
}
287285
288286
let indices = {

0 commit comments

Comments
 (0)