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

API update

parent 693a9537
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ function navigate_to_query(self, word) {
// Get article IDs
api.get('articles?', {params: {w: query.match || query.q, dict: self.lang, scope: "w", meta: 'n'}}).then((response) => {
let article_ids = response.data
let article_ids = response.data.articles || response.data
let unwrapped = []
for (const d in article_ids) {
article_ids[d].forEach(i => unwrapped.push({
......
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