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

fix incorrect index for hgno

parent c4a07704
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,9 @@ export default {
let hgnos = []
this.lemmas.forEach(lemma => {
let hgint = parseInt(lemma.hgno)
hgnos.push(["I","II","III","IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", "XIII", "XIV", "XV", "XVI"][hgint])
if (hgint > 0) {
hgnos.push(["I","II","III","IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", "XIII", "XIV", "XV", "XVI"][hgint-1])
}
})
return hgnos.join(", ")
},
......
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