From b20a98a1c0a7b0ff71c011c0eebdbc6cc6e5f599 Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Thu, 20 Jan 2022 09:42:26 +0100
Subject: [PATCH] fix incorrect logic

---
 src/components/Article.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/Article.vue b/src/components/Article.vue
index 7cf0ee09..9e798843 100644
--- a/src/components/Article.vue
+++ b/src/components/Article.vue
@@ -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() {
-- 
GitLab