diff --git a/content/software/solvespace.md b/content/software/solvespace.md index bc3ec33e..d9d32a9c 100644 --- a/content/software/solvespace.md +++ b/content/software/solvespace.md @@ -99,13 +99,6 @@ The KF25 adapter for the cold head is a much simpler device: {% layout_treejs(two=true) %}
- {% end %} diff --git a/templates/page-solvespace.html b/templates/page-solvespace.html index ae3d5f49..6a907578 100644 --- a/templates/page-solvespace.html +++ b/templates/page-solvespace.html @@ -83,17 +83,18 @@ id: 'k526s-adapter', model: solvespace_model_k526s_adapter, params: params_k526s_adapter, - }/*, { + }, { id: 'k526s-adapter-assy', model: solvespace_model_k526s_adapter_assy, params: params_k526s_assy, - }*/]; - - var node; + }, {}]; for (var i = nodes.length - 1; i >= 0; i--) { - node = document.getElementById(nodes[i].id); - node.parentNode.replaceChild(solvespace(nodes[i].model, nodes[i].params), node); + let n = nodes[i]; + if (n.id) { + let node = document.getElementById(n.id); + node.parentNode.replaceChild(solvespace(n.model, n.params), node); + } } })();