Skip to content
Snippets Groups Projects
Commit 2b6c941e authored by Alexander Rose's avatar Alexander Rose
Browse files

fix coarse seq label (index error)

parent 4961a087
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ export function elementLabel(loc: Element.Location) {
if (seq_id_begin === seq_id_end) {
const entityKey = Props.coarse.entityKey(loc)
const seq = loc.unit.model.sequence.byEntityKey[entityKey]
const comp_id = seq.compId.value(seq_id_begin)
const comp_id = seq.compId.value(seq_id_begin - 1) // 1-indexed
element = `[${comp_id}]${seq_id_begin}:${asym_id}`
} else {
element = `${seq_id_begin}-${seq_id_end}:${asym_id}`
......
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