From 564558d15c6dfd50a87593ba9741c17e117eaa74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no> Date: Thu, 11 Feb 2021 11:02:27 +0100 Subject: [PATCH] blir kvitt en feilmelding i konsollet --- src/App.vue | 2 +- src/components/Article.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index a2165204..da3d641d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -66,7 +66,7 @@ axios.interceptors.request.use(function (config) { function navigate_to_article(self, source) { axios.get(api_endpoint + '/' + self.$route.params.lang + '/article/' + self.$route.params.id) .then(function(response){ - self.article = response.data + self.article = Object.assign(response.data, {'dictionary': self.$route.params.lang}) self.search_results = [] }) .catch(function(error){ diff --git a/src/components/Article.vue b/src/components/Article.vue index 1dfdccf5..0f7ae826 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -38,7 +38,7 @@ export default { }, computed: { dictionary: function() { - return this.article.dictionary || this.$route.params.lang + return this.article.dictionary } }, components: { -- GitLab