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

Remove helper function

parent f2f6da0e
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@
let match = item[0]
let hit = {q: q, match: match, label: match}
hit.article_promise = self.get_articles(match)
hit.article_promise = self.api.get('articles?', {params: {lord: match, dict: self.$parent.lang}})
hit.lang = item[1]
hits.push(hit)
......@@ -116,10 +116,6 @@
})
},
get_articles(match) {
let self = this
return self.api.get('articles?', {params: {lord: match, dict: self.$parent.lang}})
},
submit(item) {
this.$emit('submit', item)
......
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