diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index e51c08c0a527e736a876c411565baf16ea1be329..29b0b260c0f76c703dcd76a92c6368e23f2430df 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -54,8 +54,7 @@ n: 9}} ) .then( function(response) { - let currentSearch = self.$refs.autocomplete.searchInput - if (currentSearch == q & self.suggesting) { + if (self.$refs.autocomplete.searchInput == q & self.suggesting) { let hits = [] response.data.forEach((item, i) => { @@ -65,7 +64,7 @@ }); - hits.push({q: currentSearch, label: currentSearch}) + hits.push({q: q, label: q}) self.items = hits }