Skip to content
Snippets Groups Projects
Commit 564558d1 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

blir kvitt en feilmelding i konsollet

parent 4f654378
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
......@@ -38,7 +38,7 @@ export default {
},
computed: {
dictionary: function() {
return this.article.dictionary || this.$route.params.lang
return this.article.dictionary
}
},
components: {
......
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