Skip to content

Commit f8aa3f0

Browse files
authored
.
1 parent 26e59e7 commit f8aa3f0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

_static/protocolsView.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@
6767
const lvl1 = tags[0], lvl2 = tags[1], lvl3 = tags[2];
6868

6969
if (!level1Set.has(lvl1)) { nodes.push({id:`lvl1-${lvl1}`, type:"lvl1", nombre:lvl1}); level1Set.add(lvl1); }
70-
70+
if (lvl2 && !level2Set.has(lvl1+"-"+lvl2)) {
71+
nodes.push({id:`lvl2-${lvl1}-${lvl2}`, type:"lvl2", nombre:lvl2});
72+
links.push({source:`lvl1-${lvl1}`, target:`lvl2-${lvl1}-${lvl2}`});
73+
level2Set.add(lvl1+"-"+lvl2);
74+
}
7175
if (lvl3 && !level3Set.has(lvl1+"-"+lvl2+"-"+lvl3)) {
7276
nodes.push({id:`lvl3-${lvl1}-${lvl2}-${lvl3}`, type:"lvl3", nombre:lvl3});
7377
links.push({source:`lvl2-${lvl1}-${lvl2}`, target:`lvl3-${lvl1}-${lvl2}-${lvl3}`});

0 commit comments

Comments
 (0)