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

fix incorrect logic

parent a369d983
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,7 @@ export default {
let collapsable = this.$store.state.collapseArticles
if (collapsable == 'never') {
this.is_collapsed = false
return false
}
if (collapsable == 'always') {
this.is_collapsed = true
......@@ -109,7 +110,7 @@ export default {
}
return this.$store.state.collapseArticles == 'always' || this.$parent.$options.name == 'SearchResults' && (this.$parent.results_bm.length + this.$parent.results_nn.length > 2)//getters.collapsable(this.$parent.$options.name, this.$parent.results_bm.length + this.$parent.results_nn.length)
return this.$store.state.collapseArticles == 'always' || (this.$parent.$options.name == 'SearchResults' && (this.$parent.results_bm.length + this.$parent.results_nn.length > 2))//getters.collapsable(this.$parent.$options.name, this.$parent.results_bm.length + this.$parent.results_nn.length)
},
collapsed: {
get() {
......
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