From cef94067d88c840bad9e49a7bf3e311424c5bc4b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no>
Date: Fri, 12 Feb 2021 16:20:07 +0100
Subject: [PATCH] =?UTF-8?q?re=20meta#269=20feil=20i=20funksjon=20for=20?=
 =?UTF-8?q?=C3=A5=20lage=20unike=20keys?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/SearchResults.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/SearchResults.vue b/src/components/SearchResults.vue
index 98c52d4..01917db 100644
--- a/src/components/SearchResults.vue
+++ b/src/components/SearchResults.vue
@@ -34,7 +34,7 @@ export default {
       return this.hits.filter(hit => hit.dictionary == 'nob')
     },
     results_hash: function(){
-      return this.hits.reduce((hash, hit) => (hash + hit) % 10000)
+      return this.hits.reduce((hash, hit) => (hash + hit.article_id) % 10000, 0)
     }
   },
   methods: {
-- 
GitLab