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

fix search term routing issue

parent b79e6348
No related branches found
No related tags found
No related merge requests found
......@@ -103,15 +103,20 @@ import Menu from './Menu.vue'
},
select(item) {
if (item) {
if (typeof item != 'string') {
this.items = []
this.suggesting = false
if (this.inflection_suggestions.length) {
if (this.inflection_suggestions && this.inflection_suggestions.length) {
item.inflection_suggestions = this.inflection_suggestions
}
this.submit(item)
}
}
},
$route (to, from) {
console.log("TO", to)
this.select = to.query.q
}
},
methods: {
......
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