Creating new tags doesn't throw an error

fixes #22
This commit is contained in:
Max G 2020-03-04 05:20:14 +00:00
parent de3391eb94
commit d3c0d6e2b9

View File

@ -144,7 +144,7 @@
//Enter - 13 - Execute addTag() function
if(code == 13){
//If an item from list is selected, make that the text
if(this.selection > -1){
if(this.selection > -1 && this.suggestions[vm.selection]){
this.newTagInput = this.suggestions[vm.selection].text
}
this.addTag()