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

fjernet utdatert hack (nøsting av definisjoner)

parent 716f4e2b
No related branches found
No related tags found
No related merge requests found
...@@ -37,18 +37,6 @@ export default { ...@@ -37,18 +37,6 @@ export default {
Definition, Definition,
Header Header
}, },
computed: {
definitions: function() {
let defs = this.article.body.definitions
if (defs.length == 1) {
let types = defs[0].elements.reduce((acc, toAdd)=>acc.add(toAdd.type_), new Set())
if (types.size == 1 && types.has('definition')) {
return defs[0].elements
}
}
return defs
}
},
methods: { methods: {
article_link_click: function(item) { article_link_click: function(item) {
this.$emit('article-click', item) this.$emit('article-click', 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