Skip to content

Commit

Permalink
Delete annotation removes selected, closes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Jan 16, 2019
1 parent fb85136 commit 17b3b98
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/src/components/annotator/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,8 @@ export default {
}
},
annotationDeleted(index) {
if (this.selectedAnnotation == index) {
if (index === this.category.annotations.length) {
this.selectedAnnotation--;
}
if (this.selectedAnnotation >= index) {
this.selectedAnnotation--;
}
let indices = {
Expand Down

0 comments on commit 17b3b98

Please sign in to comment.