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

Merge branch 'hotfix-remove-uninflected' into 'prod'

Hotfix remove uninflected

See merge request spraksamlingane/beta.ordbok.uib.no!218
parents f264719a 53234497
No related branches found
Tags release_2022-08-26
No related merge requests found
......@@ -30,7 +30,7 @@ export default {
word_class: lemma.paradigm_info[0].inflection_group.split('_')[0]}, lemma))
},
inflected: function() {
return this.lemmas.reduce((acc, lemma) => acc += lemma.paradigm_info.reduce((acc2, digm) => digm.inflection_group.includes("uninfl") ? 0 : acc2 += digm.inflection.length, 0), 0) > this.lemmas.length
return this.lemmas.reduce((acc, lemma) => acc + lemma.paradigm_info.reduce((acc2, digm) => digm.inflection_group.includes("uninfl") ? acc2 : acc2 + digm.inflection.length, 0), 0) > this.lemmas.length
},
always_expand: function() {
return !this.$parent.$parent.collapsed && this.$store.state.inflectionExpanded && this.$route.name
......
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