Skip to content
Snippets Groups Projects
Commit 8d394189 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Add q instead of current search to full text search

parent bfd21de3
No related branches found
No related tags found
No related merge requests found
...@@ -54,8 +54,7 @@ ...@@ -54,8 +54,7 @@
n: 9}} ) n: 9}} )
.then( .then(
function(response) { function(response) {
let currentSearch = self.$refs.autocomplete.searchInput if (self.$refs.autocomplete.searchInput == q & self.suggesting) {
if (currentSearch == q & self.suggesting) {
let hits = [] let hits = []
response.data.forEach((item, i) => { response.data.forEach((item, i) => {
...@@ -65,7 +64,7 @@ ...@@ -65,7 +64,7 @@
}); });
hits.push({q: currentSearch, label: currentSearch}) hits.push({q: q, label: q})
self.items = hits self.items = hits
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment