From 3394a5ac61a3dfaf51ea0007a5aa59a7e4c5f33e Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Wed, 12 Jan 2022 14:43:58 +0100 Subject: [PATCH] API update --- src/components/DictionaryView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 00e16385..247d9492 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -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({ -- GitLab