Fix bar's ranks

This commit is contained in:
be5invis 2020-10-27 22:41:51 -07:00
parent e719992f2c
commit f0262ba5f8
6 changed files with 18 additions and 17 deletions

View file

@ -245,7 +245,7 @@ module.exports = async function getLigationData() {
function buildLigationSet(ligData, getKey) {
const ligationSets = new Map([
["*off", { tag: "calt", switch: "off", desc: "Ligation Off", brief: "Off", ligSets: [] }]
["*off", { tag: "calt", rank: 0, desc: "Ligation Off", brief: "Off", ligSets: [] }]
]);
for (const sel in ligData.composite) {
const comp = ligData.composite[sel];
@ -259,6 +259,7 @@ function buildLigationSet(ligData, getKey) {
}
item = {
tag: comp.tag,
rank: 1,
ligSets: [...ligSets],
tagName: comp.tag,
desc: comp.desc,