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

re meta#269 feil i funksjon for å lage unike keys

parent d93c3471
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
return this.hits.filter(hit => hit.dictionary == 'nob') return this.hits.filter(hit => hit.dictionary == 'nob')
}, },
results_hash: function(){ 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: { methods: {
......
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