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 @@
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
}
......
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