From 8d3941890db09d5b6d6d140e77624706d53a196d Mon Sep 17 00:00:00 2001 From: "Henrik.Askjer" <henrik.askjer@uib.no> Date: Fri, 27 Aug 2021 11:36:50 +0200 Subject: [PATCH] Add q instead of current search to full text search --- src/components/Autocomplete.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index e51c08c0..29b0b260 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 } -- GitLab